Fix x64 problems for WIN64.

This commit is contained in:
LuisAntonRebollo 2014-09-14 20:44:07 +02:00
parent 6bfb7d8186
commit fcf7bee64a
12 changed files with 52 additions and 22 deletions

View file

@ -59,7 +59,7 @@ U32 _StringTable::hashString(const char* str)
char c;
while((c = *str++) != 0) {
ret <<= 1;
ret ^= sgHashTable[static_cast<U32>(c)];
ret ^= sgHashTable[static_cast<U8>(c)];
}
return ret;
}
@ -73,7 +73,7 @@ U32 _StringTable::hashStringn(const char* str, S32 len)
char c;
while((c = *str++) != 0 && len--) {
ret <<= 1;
ret ^= sgHashTable[static_cast<U32>(c)];
ret ^= sgHashTable[static_cast<U8>(c)];
}
return ret;
}