diff --git a/core/variant/binder_common.h b/core/variant/binder_common.h index 61b90e2a265e..fa49767d4607 100644 --- a/core/variant/binder_common.h +++ b/core/variant/binder_common.h @@ -214,11 +214,11 @@ struct VariantCaster { template <> struct PtrToArg { _FORCE_INLINE_ static char32_t convert(const void *p_ptr) { - return char32_t(*reinterpret_cast(p_ptr)); + return char32_t(*reinterpret_cast(p_ptr)); } typedef int64_t EncodeT; _FORCE_INLINE_ static void encode(char32_t p_val, const void *p_ptr) { - *(int *)p_ptr = p_val; + *(int64_t *)p_ptr = p_val; } };