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

Variant INT and REAL are now 64 bits (other types remain at 32)

This commit is contained in:
Juan Linietsky
2017-01-08 20:58:39 -03:00
parent 94ee7798ce
commit 13cdccf23b
9 changed files with 202 additions and 63 deletions

View File

@@ -731,14 +731,14 @@ void GDTokenizerText::_advance() {
INCPOS(str.length());
if (hexa_found) {
int val = str.hex_to_int();
int64_t val = str.hex_to_int64();
_make_constant(val);
} else if (period_found || exponent_found) {
real_t val = str.to_double();
double val = str.to_double();
//print_line("*%*%*%*% to convert: "+str+" result: "+rtos(val));
_make_constant(val);
} else {
int val = str.to_int();
int64_t val = str.to_int64();
_make_constant(val);
}