mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-15 08:22:34 +01:00
Fix: Don't add chars with unspecified signedness to pointers. (#13828)
This commit is contained in:
@@ -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<uint8_t>(str[1]) << 8) + static_cast<uint8_t>(str[2]);
|
||||
num--;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user