Actually fix sign compare warning.

This commit is contained in:
Relintai 2022-08-16 01:44:25 +02:00
parent 7e5896d81b
commit 904c88c403

View File

@ -1313,7 +1313,7 @@ bool String::begins_with(const char *p_string) const {
int i = 0;
while (*p_string && i < l) {
if (*p_string != (CharType)str[i]) {
if ((CharType)(*p_string) != str[i]) {
return false;
}
i++;