From a7fb4e85c9221f31baf2c2aaadf7730b855f16ec Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 31 Jul 2005 22:16:44 +0000 Subject: [PATCH] Fixed bug where 64bit code was not browsed properly --- amxmodx/amx.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/amxmodx/amx.cpp b/amxmodx/amx.cpp index 23cb6030..8a56c814 100755 --- a/amxmodx/amx.cpp +++ b/amxmodx/amx.cpp @@ -539,7 +539,7 @@ static int amx_BrowseRelocate(AMX *amx) assert(OP_SYMBOL==126); amx->sysreq_d=0; /* preset */ - #if (defined __GNUC__ || defined ASM32 || defined JIT) && !defined __64BIT__ + #if (defined __GNUC__ || defined ASM32 || defined JIT) amx_Exec(amx, (cell*)(void*)&opcode_list, 0); /* to use direct system requests, a function pointer must fit in a cell; * because the native function's address will be stored as the parameter @@ -927,7 +927,7 @@ int AMXAPI amx_Init(AMX *amx,void *program) for (i=0; iaddress); /* redundant, because it should be zero */ if (USENAMETABLE(hdr)) - amx_Align32(&((AMX_FUNCSTUBNT*)fs)->nameofs); + amx_AlignCell(&((AMX_FUNCSTUBNT*)fs)->nameofs); fs=(AMX_FUNCSTUB*)((unsigned char *)fs+hdr->defsize); } /* for */ @@ -937,7 +937,7 @@ int AMXAPI amx_Init(AMX *amx,void *program) for (i=0; iaddress); if (USENAMETABLE(hdr)) - amx_Align32(&((AMX_FUNCSTUBNT*)fs)->nameofs); + amx_AlignCell(&((AMX_FUNCSTUBNT*)fs)->nameofs); fs=(AMX_FUNCSTUB*)((unsigned char *)fs+hdr->defsize); } /* for */ @@ -947,7 +947,7 @@ int AMXAPI amx_Init(AMX *amx,void *program) for (i=0; iaddress); if (USENAMETABLE(hdr)) - amx_Align32(&((AMX_FUNCSTUBNT*)fs)->nameofs); + amx_AlignCell(&((AMX_FUNCSTUBNT*)fs)->nameofs); fs=(AMX_FUNCSTUB*)((unsigned char *)fs+hdr->defsize); } /* for */ @@ -962,7 +962,7 @@ int AMXAPI amx_Init(AMX *amx,void *program) for (i=0; iaddress); if (USENAMETABLE(hdr)) - amx_Align32(&((AMX_FUNCSTUBNT*)fs)->nameofs); + amx_AlignCell(&((AMX_FUNCSTUBNT*)fs)->nameofs); fs=(AMX_FUNCSTUB*)((unsigned char *)fs+hdr->defsize); } /* for */ } /* local */