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
1 changed files with 1 additions and 1 deletions

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