소스 검색

Fix hash issue with OptimizedTranslation caused by signed char

Zae 5 달 전
부모
커밋
0013d30c92
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/string/optimized_translation.h

+ 1 - 1
core/string/optimized_translation.h

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