Merge pull request #104218 from zaevi/fix_OptimizedTranslation_hash

Fix hash issue with OptimizedTranslation caused by signed char
This commit is contained in:
Thaddeus Crews 2025-04-01 19:53:37 -05:00
commit 92002b1c69
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -64,7 +64,7 @@ class OptimizedTranslation : public Translation {
d = 0x1000193;
}
while (*p_str) {
d = (d * 0x1000193) ^ uint32_t(*p_str);
d = (d * 0x1000193) ^ static_cast<uint8_t>(*p_str);
p_str++;
}