From c97435cfa5538bc9dcfe8a3acfebe67b3677874c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Mon, 21 Aug 2017 23:51:46 +0200 Subject: [PATCH] Fix tokenization of doubles (cherry picked from commit 6759a28050885a25803e9bcb7fd53e38ea16ecf3) --- core/variant_parser.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/variant_parser.cpp b/core/variant_parser.cpp index 3f0644d0bb5..4258f79d832 100644 --- a/core/variant_parser.cpp +++ b/core/variant_parser.cpp @@ -324,6 +324,7 @@ Error VariantParser::get_token(Stream *p_stream, Token &r_token, int &line, Stri is_float = true; } else if (c == 'e') { reading = READING_EXP; + is_float = true; } else { reading = READING_DONE; } @@ -335,7 +336,6 @@ Error VariantParser::get_token(Stream *p_stream, Token &r_token, int &line, Stri } else if (c == 'e') { reading = READING_EXP; - } else { reading = READING_DONE; } @@ -347,8 +347,6 @@ Error VariantParser::get_token(Stream *p_stream, Token &r_token, int &line, Stri exp_beg = true; } else if ((c == '-' || c == '+') && !exp_sign && !exp_beg) { - if (c == '-') - is_float = true; exp_sign = true; } else {