You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/string/ustring.cpp
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1850,6 +1850,8 @@ String String::num(double p_num, int p_decimals) {
1850
1850
}
1851
1851
1852
1852
String String::num_int64(int64_t p_num, int base, bool capitalize_hex) {
1853
+
ERR_FAIL_COND_V_MSG(base < 2 || base > 36, "", "Cannot convert to base " + itos(base) + ", since the value is " + (base < 2 ? "less than 2." : "greater than 36."));
String String::num_uint64(uint64_t p_num, int base, bool capitalize_hex) {
1893
+
ERR_FAIL_COND_V_MSG(base < 2 || base > 36, "", "Cannot convert to base " + itos(base) + ", since the value is " + (base < 2 ? "less than 2." : "greater than 36."));
0 commit comments