We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 471ff68 commit 53b85bbCopy full SHA for 53b85bb
src/include/common/util/hash_util.h
@@ -33,7 +33,7 @@ class HashUtil {
33
// https://github.com/greenplum-db/gpos/blob/b53c1acd6285de94044ff91fbee91589543feba1/libgpos/src/utils.cpp#L126
34
hash_t hash = length;
35
for (size_t i = 0; i < length; ++i) {
36
- hash = ((hash << 5) ^ (hash >> 27)) ^ bytes[i];
+ hash = ((hash << 5) ^ (hash >> 27)) ^ static_cast<int8_t>(bytes[i]);
37
}
38
return hash;
39
0 commit comments