From 608404100f3bf2608558a647804d7e1cadfcebc3 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 15 Mar 2025 17:45:03 +0100 Subject: [PATCH] Fix: Don't add chars with unspecified signedness to pointers. --- src/strings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strings.cpp b/src/strings.cpp index 6530c29560..84496630d0 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1227,7 +1227,7 @@ static void FormatString(StringBuilder &builder, const char *str_arg, StringPara break; } /* Otherwise skip to the next case */ - str += 3 + (str[1] << 8) + str[2]; + str += 3 + (static_cast(str[1]) << 8) + static_cast(str[2]); num--; } break;