diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-06-19 07:50:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 07:50:34 +0200 |
commit | 9562fb900e1d52f261d443f66667d7d0fdf18932 (patch) | |
tree | eff4d27940c414bcffdf1912bf1ce5e40b9554c8 /modules/mono | |
parent | 4e0f31a67cb757f95a658a02ac28afcdda40b299 (diff) | |
parent | 60fcefba699eb6897a69ca47a962e846cedb04be (diff) |
Merge pull request #39629 from MichaelBelousov/dont-slice-longs-to-mono
Dont slice 64-bit integers marshaled to mono in dynamic contexts
Diffstat (limited to 'modules/mono')
-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 |