From 5736a0ed3c92f389d46cea8f40941c9461f08f33 Mon Sep 17 00:00:00 2001 From: "Wilson E. Alvarez" Date: Thu, 21 Oct 2021 12:48:23 -0400 Subject: Accept capital B in String::bin_to_int prefix --- core/string/ustring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3