mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Accept capital B in String::bin_to_int prefix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user