diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-08-31 23:30:35 +0200 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-09-01 08:13:12 +0200 |
commit | f9467ec1ea6c0dac2ea513b7dfe58d0349788e02 (patch) | |
tree | 05421200fdd55c97b3b60895597f487d8ac51afa /core/ustring.cpp | |
parent | 51ae90d7893fd392dd8938cc41c52081e5065794 (diff) | |
download | redot-engine-f9467ec1ea6c0dac2ea513b7dfe58d0349788e02.tar.gz |
Fix signed and unsigned comparisons
The first in my quest to make Godot 3.x compile with -Werror on GCC7
Diffstat (limited to 'core/ustring.cpp')
-rw-r--r-- | core/ustring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index ee07c7b11b..7f073b4e02 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -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; |