Browse Source

Accept capital B in String::bin_to_int prefix

Wilson E. Alvarez 3 years ago
parent
commit
5736a0ed3c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/string/ustring.cpp

+ 1 - 1
core/string/ustring.cpp

@@ -2178,7 +2178,7 @@ int64_t String::bin_to_int() const {
 		s++;
 		s++;
 	}
 	}
 
 
-	if (len > 2 && s[0] == '0' && s[1] == 'b') {
+	if (len > 2 && s[0] == '0' && lower_case(s[1]) == 'b') {
 		s += 2;
 		s += 2;
 	}
 	}