diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-09-01 21:52:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-01 21:52:55 +0200 |
commit | dac150108ab3c1f41d5fd86cc6853f883064caaf (patch) | |
tree | 09195c9dd5e0d651e96b7d26f26985ab5ff6f871 /core/ustring.cpp | |
parent | 69ac4cbb3764a454194e27a7afe71d98af65c32c (diff) | |
parent | f9467ec1ea6c0dac2ea513b7dfe58d0349788e02 (diff) |
Merge pull request #10846 from hpvb/fix-sign-compare
Fix signed and unsigned comparisons
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; |