Fix hash issue with OptimizedTranslation caused by signed char
This commit is contained in:
parent
54278a48e7
commit
0013d30c92
1 changed files with 1 additions and 1 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue