diff --git a/core/reference.h b/core/reference.h index afc097817ab..4e2d6c36c00 100644 --- a/core/reference.h +++ b/core/reference.h @@ -344,7 +344,7 @@ struct PtrToArg &> { _FORCE_INLINE_ static Ref convert(const void *p_ptr) { - return Ref(reinterpret_cast(p_ptr)); + return Ref((T *)p_ptr); } };