This commit is contained in:
john30
2019-03-16 15:50:45 +01:00
parent d366bbb6b3
commit 94932c1fe1
+1 -1
View File
@@ -120,7 +120,7 @@ void FileReader::tolower(string* str) {
static size_t hashFunction(const string& str) {
size_t hash = 0;
for (char c : str) {
for (unsigned char c : str) {
hash = (31 * hash) ^ c;
}
return hash;