Accept capital B in String::bin_to_int prefix
This commit is contained in:
parent
468b987aa3
commit
5736a0ed3c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue