Merge pull request #39629 from MichaelBelousov/dont-slice-longs-to-mono

Dont slice 64-bit integers marshaled to mono in dynamic contexts
This commit is contained in:
Rémi Verschelde 2020-06-19 07:50:34 +02:00 committed by GitHub
commit 9562fb900e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -624,8 +624,8 @@ MonoObject *variant_to_mono_object(const Variant *p_var, const ManagedType &p_ty
return BOX_BOOLEAN(val);
}
case Variant::INT: {
int32_t val = p_var->operator signed int();
return BOX_INT32(val);
int64_t val = p_var->operator int64_t();
return BOX_INT64(val);
}
case Variant::FLOAT: {
#ifdef REAL_T_IS_DOUBLE