return boxed long when marshalling a godot int to mono runtime in dynamic contexts
(cherry picked from commit 60fcefba69
)
This commit is contained in:
parent
b3af0b2a39
commit
42a31501a8
|
@ -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: {
|
||||||
int32_t val = p_var->operator signed int();
|
int64_t val = p_var->operator int64_t();
|
||||||
return BOX_INT32(val);
|
return BOX_INT64(val);
|
||||||
}
|
}
|
||||||
case Variant::REAL: {
|
case Variant::REAL: {
|
||||||
#ifdef REAL_T_IS_DOUBLE
|
#ifdef REAL_T_IS_DOUBLE
|
||||||
|
|
Loading…
Reference in New Issue