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++;