From 42a31501a8bd858d5560b389712a7c230a4c2074 Mon Sep 17 00:00:00 2001 From: Michael Belousov Date: Wed, 17 Jun 2020 16:59:44 -0400 Subject: [PATCH] return boxed long when marshalling a godot int to mono runtime in dynamic contexts (cherry picked from commit 60fcefba699eb6897a69ca47a962e846cedb04be) --- modules/mono/mono_gd/gd_mono_marshal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/mono/mono_gd/gd_mono_marshal.cpp b/modules/mono/mono_gd/gd_mono_marshal.cpp index 2e988b89770..0edbb1e0693 100644 --- a/modules/mono/mono_gd/gd_mono_marshal.cpp +++ b/modules/mono/mono_gd/gd_mono_marshal.cpp @@ -554,8 +554,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::REAL: { #ifdef REAL_T_IS_DOUBLE