Revert "return boxed long when marshalling a godot int to mono runtime in dynamic contexts"

This reverts commit 42a31501a8.

It breaks compat as is and needs some further work before it can be
cherry-picked for 3.2.x.
This commit is contained in:
Rémi Verschelde 2020-06-22 08:35:21 +02:00
parent 4c638f98ab
commit 327479472e
1 changed files with 2 additions and 2 deletions

View File

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