Small fixes, mostly dupicated code

(cherry picked from commit 856a8226a5)
This commit is contained in:
qarmin
2019-04-08 11:03:37 +02:00
committed by Rémi Verschelde
parent a2cf479f07
commit 3b703d6707
29 changed files with 32 additions and 60 deletions

View File

@@ -3006,8 +3006,8 @@ static Error _lookup_symbol_from_base(const GDScriptParser::DataType &p_base, co
}
}
}
base_type = base_type.class_type->base_type;
}
base_type = base_type.class_type->base_type;
} break;
case GDScriptParser::DataType::SCRIPT:
case GDScriptParser::DataType::GDSCRIPT: {

View File

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