1
0
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:
Zae
2025-03-16 15:21:06 +08:00
parent 54278a48e7
commit 0013d30c92

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++;
}