From 05260cd3b71dd899d79ff546f0e3db1266ce1b3a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 23 Apr 2005 16:07:14 +0000 Subject: [PATCH] Fixed GCC bug --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4038 --- sourcehook/sh_memfuncinfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sourcehook/sh_memfuncinfo.h b/sourcehook/sh_memfuncinfo.h index 813d030..8adec95 100644 --- a/sourcehook/sh_memfuncinfo.h +++ b/sourcehook/sh_memfuncinfo.h @@ -65,9 +65,9 @@ namespace SourceHook }; int delta; }; - template static inline void GetFuncInfo(MFP *mfp, MemFuncInfo &out) + template static inline void GetFuncInfo(MFP mfp, MemFuncInfo &out) { - GCC_MemFunPtr *mfp_detail = (GCC_MemFunPtr*)mfp; + GCC_MemFunPtr *mfp_detail = (GCC_MemFunPtr*)&mfp; out.thisptroffs = mfp_detail->delta; if (mfp_detail->vtable_index_plus1 & 1) {