Fix compile warning/error due to assignment in while() loop
This causes build failures with -Werror=parentheses
This commit is contained in:
parent
e7c83cfb8c
commit
22badee09a
1 changed files with 1 additions and 1 deletions
|
|
@ -309,7 +309,7 @@ struct str_hash
|
||||||
unsigned long hash = 5381;
|
unsigned long hash = 5381;
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
while (c = *str++)
|
while ((c = *str++))
|
||||||
hash = ((hash << 5) + hash) + c;
|
hash = ((hash << 5) + hash) + c;
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue