summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_tokenizer.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2019-04-08 11:03:37 +0200
committerqarmin <mikrutrafal54@gmail.com>2019-04-08 11:03:37 +0200
commit856a8226a5306632f5dd4d9e9c916d89e3e21495 (patch)
treef5ed5052dfc9d6793b78b2353ba84732676beb08 /modules/gdscript/gdscript_tokenizer.cpp
parentc2c11fc063e723c41579e6307e40fd16ac5334c4 (diff)
Small fixes, mostly dupicated code
Diffstat (limited to 'modules/gdscript/gdscript_tokenizer.cpp')
-rw-r--r--modules/gdscript/gdscript_tokenizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_tokenizer.cpp b/modules/gdscript/gdscript_tokenizer.cpp
index 8962e3bb34..97acb6f7f3 100644
--- a/modules/gdscript/gdscript_tokenizer.cpp
+++ b/modules/gdscript/gdscript_tokenizer.cpp
@@ -894,7 +894,7 @@ void GDScriptTokenizerText::_advance() {
}
hexa_found = true;
} else if (!hexa_found && GETCHAR(i) == 'e') {
- if (hexa_found || exponent_found) {
+ if (exponent_found) {
_make_error("Invalid numeric constant at 'e'");
return;
}