We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f53842 commit e391d0cCopy full SHA for e391d0c
1 file changed
src/array_hash.h
@@ -79,7 +79,8 @@ struct str_hash {
79
80
std::size_t hash = init;
81
for (std::size_t i = 0; i < key_size; ++i) {
82
- hash = (hash ^ key[i]) + (hash * multiplier);
+ hash ^= key[i];
83
+ hash *= multiplier;
84
}
85
86
return hash;
0 commit comments