mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-09 12:29:35 +01:00
Fix an another sign compare warning.
This commit is contained in:
parent
87149557b2
commit
c5670d501f
@ -1230,14 +1230,14 @@ bool String::is_word_at(const int index, const char *p_str) const {
|
||||
|
||||
int i = 0;
|
||||
|
||||
while (p_str[i] != '\0') {
|
||||
while (str[i] != '\0') {
|
||||
int iind = index + i;
|
||||
|
||||
if (iind >= size) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (operator[](iind) != p_str[i]) {
|
||||
if (operator[](iind) != (CharType)str[i]) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -1258,7 +1258,7 @@ bool String::is_word_at(const int index, const String &p_str) const {
|
||||
for (int i = 0; i < p_str.length(); ++i) {
|
||||
int iind = index + i;
|
||||
|
||||
if (operator[](iind) != p_str[i]) {
|
||||
if (operator[](iind) != (CharType)p_str[i]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user