summaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_tokenizer.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-06-19 13:05:00 +0200
committerGitHub <noreply@github.com>2016-06-19 13:05:00 +0200
commit1923733ec83d2402d2b91877e9dbe62f87882784 (patch)
tree7b06fd811d58ebb84965c67fcf19a5535360f7ee /modules/gdscript/gd_tokenizer.cpp
parentc7b425ed9c1a085ee648a11d037373af5df1148a (diff)
parentc246931f030fa434d9494835a565543ab7d61258 (diff)
Merge pull request #5268 from brakhane/fix-floating-bug
correctly parse floats in scientific notation (Fix #5267)
Diffstat (limited to 'modules/gdscript/gd_tokenizer.cpp')
-rw-r--r--modules/gdscript/gd_tokenizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_tokenizer.cpp b/modules/gdscript/gd_tokenizer.cpp
index 8dd68cf95a..0a77b96569 100644
--- a/modules/gdscript/gd_tokenizer.cpp
+++ b/modules/gdscript/gd_tokenizer.cpp
@@ -725,7 +725,7 @@ void GDTokenizerText::_advance() {
if (hexa_found) {
int val = str.hex_to_int();
_make_constant(val);
- } else if (period_found) {
+ } else if (period_found || exponent_found) {
real_t val = str.to_double();
//print_line("*%*%*%*% to convert: "+str+" result: "+rtos(val));
_make_constant(val);