summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gd_tokenizer.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-08 20:58:39 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-08 20:58:39 -0300
commit13cdccf23ba639d7a30a590698cfd36ee558c794 (patch)
treec5663aa7050d6d79ef1073ac26d8ff0104a27ad4 /modules/gdscript/gd_tokenizer.cpp
parent94ee7798ced5bc79196c971921c3109e299f8306 (diff)
downloadredot-engine-13cdccf23ba639d7a30a590698cfd36ee558c794.tar.gz
Variant INT and REAL are now 64 bits (other types remain at 32)
Diffstat (limited to 'modules/gdscript/gd_tokenizer.cpp')
-rw-r--r--modules/gdscript/gd_tokenizer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gdscript/gd_tokenizer.cpp b/modules/gdscript/gd_tokenizer.cpp
index 865c07f3b2..fcf2d25806 100644
--- a/modules/gdscript/gd_tokenizer.cpp
+++ b/modules/gdscript/gd_tokenizer.cpp
@@ -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);
}