From 22badee09a7574cdece27cd7d3db1fdd9447c2a2 Mon Sep 17 00:00:00 2001 From: Mark Adams Date: Mon, 14 Dec 2015 10:48:04 -0500 Subject: [PATCH] Fix compile warning/error due to assignment in while() loop This causes build failures with -Werror=parentheses --- glslang/MachineIndependent/Scan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glslang/MachineIndependent/Scan.cpp b/glslang/MachineIndependent/Scan.cpp index f6f7b268..25e55d90 100644 --- a/glslang/MachineIndependent/Scan.cpp +++ b/glslang/MachineIndependent/Scan.cpp @@ -309,7 +309,7 @@ struct str_hash unsigned long hash = 5381; int c; - while (c = *str++) + while ((c = *str++)) hash = ((hash << 5) + hash) + c; return hash;