mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-05 08:22:59 +00:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user