more warning fixes
This commit is contained in:
1 parent
e2932fb61a
commit
f3a833dd1b
17 files changed
+22
-19
No files matched your search
@@ -14,7 +14,10 @@ int HashFunction<String>(const String & k)
|
||||
unsigned long hash = 5381;
|
||||
const char *str = k.c_str();
|
||||
char c;
|
||||
while (c = *str++) hash = ((hash << 5) + hash) + c; // hash*33 + c
|
||||
while ((c = *str++))
|
||||
{
|
||||
hash = ((hash << 5) + hash) + c; // hash*33 + c
|
||||
}
|
||||
return hash;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user