diff --git a/core/variant/binder_common.h b/core/variant/binder_common.h index b6810930cca1..306d3517fada 100644 --- a/core/variant/binder_common.h +++ b/core/variant/binder_common.h @@ -93,7 +93,7 @@ struct VariantCaster { template <> \ struct PtrToArg { \ _FORCE_INLINE_ static m_enum convert(const void *p_ptr) { \ - return m_enum(*reinterpret_cast(p_ptr)); \ + return *reinterpret_cast(p_ptr); \ } \ typedef int64_t EncodeT; \ _FORCE_INLINE_ static void encode(m_enum p_val, const void *p_ptr) { \