diff options
author | Michael Belousov <michael.belousov98@gmail.com> | 2020-06-17 16:59:44 -0400 |
---|---|---|
committer | Michael Belousov <michael.belousov98@gmail.com> | 2020-06-17 17:16:17 -0400 |
commit | 60fcefba699eb6897a69ca47a962e846cedb04be (patch) | |
tree | bb6f7f62b5582444d105827303c320b36a681292 /modules | |
parent | d341181f30b4f2e154748911f5d8a59b43aa6e62 (diff) |
return boxed long when marshalling a godot int to mono runtime in dynamic contexts
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mono/mono_gd/gd_mono_marshal.cpp | 4 |
1 files 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 085062261d..158742846b 100644 --- a/modules/mono/mono_gd/gd_mono_marshal.cpp +++ b/modules/mono/mono_gd/gd_mono_marshal.cpp @@ -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 |