From 0cd87bc8c1012b331f2cc1c954517c98588db78c Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 15 Mar 2025 18:48:26 +0100 Subject: [PATCH] Fix: Don't add chars with unspecified signedness to pointers. (#13828) --- 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;