Fix signed and unsigned comparisons
The first in my quest to make Godot 3.x compile with -Werror on GCC7
This commit is contained in:
parent
51ae90d789
commit
f9467ec1ea
34 changed files with 105 additions and 105 deletions
|
|
@ -588,7 +588,7 @@ String String::camelcase_to_underscore(bool lowercase) const {
|
|||
const char a = 'a', z = 'z';
|
||||
int start_index = 0;
|
||||
|
||||
for (size_t i = 1; i < this->size(); i++) {
|
||||
for (int i = 1; i < this->size(); i++) {
|
||||
bool is_upper = cstr[i] >= A && cstr[i] <= Z;
|
||||
bool is_number = cstr[i] >= '0' && cstr[i] <= '9';
|
||||
bool are_next_2_lower = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue