summaryrefslogtreecommitdiff
path: root/core/string/ustring.cpp
diff options
context:
space:
mode:
authorWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2021-10-21 12:48:23 -0400
committerWilson E. Alvarez <wilson.e.alvarez1@gmail.com>2021-10-21 13:18:49 -0400
commit5736a0ed3c92f389d46cea8f40941c9461f08f33 (patch)
treed233850b2d24cf1f216764a216ee0aa1af97e816 /core/string/ustring.cpp
parent468b987aa38b21b55c1cd8a8d4c03b8e1b2a1373 (diff)
Accept capital B in String::bin_to_int prefix
Diffstat (limited to 'core/string/ustring.cpp')
-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 daeb7fbd17..8728f4e4ea 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;
}