1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Make all String float conversion methods be 64-bit

This commit is contained in:
Aaron Franke
2020-07-24 14:07:57 -04:00
parent 4e825539e5
commit 56e2c6c704
25 changed files with 106 additions and 125 deletions

View File

@@ -235,7 +235,7 @@ ScriptClassParser::Token ScriptClassParser::get_token() {
if (code[idx] == '-' || (code[idx] >= '0' && code[idx] <= '9')) {
//a number
const CharType *rptr;
double number = String::to_double(&code[idx], &rptr);
double number = String::to_float(&code[idx], &rptr);
idx += (rptr - &code[idx]);
value = number;
return TK_NUMBER;