Accept capital B in String::bin_to_int prefix

This commit is contained in:
Wilson E. Alvarez 2021-10-21 12:48:23 -04:00
parent 468b987aa3
commit 5736a0ed3c
No known key found for this signature in database
GPG key ID: A32174A3D2ED3F9E

View file

@ -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;
}