more warning fixes

This commit is contained in:
Borja Ferrer
2006-08-18 19:08:51 +00:00
parent e2932fb61a
commit f3a833dd1b
17 changed files with 22 additions and 19 deletions

View File

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