Make enum/constant binds 64-bit.

This commit is contained in:
bruvzg
2022-05-09 12:47:10 +03:00
parent 78944fef82
commit 860e24683f
16 changed files with 48 additions and 46 deletions

View File

@ -2900,7 +2900,7 @@ void GDScriptAnalyzer::reduce_identifier_from_base(GDScriptParser::IdentifierNod
return;
}
bool valid = false;
int int_constant = ClassDB::get_integer_constant(native, name, &valid);
int64_t int_constant = ClassDB::get_integer_constant(native, name, &valid);
if (valid) {
p_identifier->is_constant = true;
p_identifier->reduced_value = int_constant;