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