Skip to content

Commit 92002b1

Browse files
committed
Merge pull request #104218 from zaevi/fix_OptimizedTranslation_hash
Fix hash issue with OptimizedTranslation caused by signed char
2 parents b9b3c3f + 0013d30 commit 92002b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/string/optimized_translation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class OptimizedTranslation : public Translation {
6464
d = 0x1000193;
6565
}
6666
while (*p_str) {
67-
d = (d * 0x1000193) ^ uint32_t(*p_str);
67+
d = (d * 0x1000193) ^ static_cast<uint8_t>(*p_str);
6868
p_str++;
6969
}
7070

0 commit comments

Comments
 (0)