You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix hash issue with OptimizedTranslation caused by signed char
This commit is contained in:
@@ -64,7 +64,7 @@ class OptimizedTranslation : public Translation {
|
|||||||
d = 0x1000193;
|
d = 0x1000193;
|
||||||
}
|
}
|
||||||
while (*p_str) {
|
while (*p_str) {
|
||||||
d = (d * 0x1000193) ^ uint32_t(*p_str);
|
d = (d * 0x1000193) ^ static_cast<uint8_t>(*p_str);
|
||||||
p_str++;
|
p_str++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user