Merge pull request #116 from mgadams/scan_compile_fix

Fix compile warning/error due to assignment in while() loop
This commit is contained in:
John Kessenich 2015-12-14 17:47:51 -07:00
commit ea0cb2eb11

View File

@ -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;