mirror of
https://github.com/sigmasternchen/macrofuck
synced 2025-03-15 15:18:56 +00:00
fix: Change hash function
This commit is contained in:
parent
e5b1996845
commit
179757fe3a
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
|||
int hash_string(const char* str) {
|
||||
int result = 0;
|
||||
while (str* != '\0') {
|
||||
result ^= str*;
|
||||
result = str* + 31 * result;
|
||||
str++;
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue