From 904c88c403709a44d0f91c37475d8de33764324c Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 16 Aug 2022 01:44:25 +0200 Subject: [PATCH] Actually fix sign compare warning. --- core/ustring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ustring.cpp b/core/ustring.cpp index 8c1948788..4fa91a67a 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -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++;