Merge pull request #27673 from qarmin/small_fixes

Small fixes, mostly duplicated code
This commit is contained in:
Rémi Verschelde 2019-04-22 12:00:34 +02:00 committed by GitHub
commit a342131eba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 32 additions and 60 deletions

View file

@ -896,7 +896,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;
}