From 0013d30c92bc9122baa50fe2765a791c5f48443f Mon Sep 17 00:00:00 2001 From: Zae Date: Sun, 16 Mar 2025 15:21:06 +0800 Subject: [PATCH] Fix hash issue with OptimizedTranslation caused by signed char --- core/string/optimized_translation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/string/optimized_translation.h b/core/string/optimized_translation.h index 823adaf1da..fc4f446831 100644 --- a/core/string/optimized_translation.h +++ b/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(*p_str); p_str++; }