瀏覽代碼

Accept capital B in String::bin_to_int prefix

Wilson E. Alvarez 4 年之前
父節點
當前提交
5736a0ed3c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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++;
 	}
 
-	if (len > 2 && s[0] == '0' && s[1] == 'b') {
+	if (len > 2 && s[0] == '0' && lower_case(s[1]) == 'b') {
 		s += 2;
 	}