aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_tokenizer.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-01-08 20:58:39 -0300
committerJuan Linietsky2017-01-08 20:58:39 -0300
commit13cdccf23ba639d7a30a590698cfd36ee558c794 (patch)
treec5663aa7050d6d79ef1073ac26d8ff0104a27ad4 /modules/gdscript/gd_tokenizer.cpp
parent94ee7798ced5bc79196c971921c3109e299f8306 (diff)
downloadgodot-13cdccf23ba639d7a30a590698cfd36ee558c794.tar.gz
godot-13cdccf23ba639d7a30a590698cfd36ee558c794.tar.zst
godot-13cdccf23ba639d7a30a590698cfd36ee558c794.zip
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 865c07f3b..fcf2d2580 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);
}