summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-10-22 19:31:55 +0200
committerGitHub <noreply@github.com>2021-10-22 19:31:55 +0200
commitf9be8b8e8e8c48e9e82989bdfb3f1d84621781e4 (patch)
tree25c067dbe774fa742cb4d8890d39e723c42bcee8
parentbeb3875cdf7f848eb48bb7ccd37b798bfd25a0b9 (diff)
parent5736a0ed3c92f389d46cea8f40941c9461f08f33 (diff)
Merge pull request #54081 from Rubonnek/add_bin_messages_master
-rw-r--r--core/string/ustring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/string/ustring.cpp b/core/string/ustring.cpp
index b1e685651e..397743fb6e 100644
--- a/core/string/ustring.cpp
+++ b/core/string/ustring.cpp
@@ -2178,7 +2178,7 @@ int64_t String::bin_to_int() const {
s++;
}
- if (len > 2 && s[0] == '0' && s[1] == 'b') {
+ if (len > 2 && s[0] == '0' && lower_case(s[1]) == 'b') {
s += 2;
}