Fixed assertion bugs

This commit is contained in:
David Anderson 2004-07-31 20:13:11 +00:00
parent ca3bd4d118
commit f5f2592ef4
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ float.cpp file.cpp modules.cpp CMisc.cpp CTask.cpp string.cpp\
amxmodx.cpp CEvent.cpp CCmd.cpp CLogEvent.cpp srvcmd.cpp strptime.cpp\
CForward.cpp CPlugin.cpp CModule.cpp CMenu.cpp emsg.cpp util.cpp \
amxcore.cpp amxtime.cpp power.cpp amxxlog.cpp fakemeta.cpp mmgr/mmgr.cpp \
amxxfile.cpp
amxxfile.cpp CLang.cpp
CSRCFILES = amx.c minilzo/minilzo.c
EXTRA_LIBS_LINUX =

View File

@ -370,7 +370,7 @@ uint16_t * AMXAPI amx_Align16(uint16_t *v)
uint32_t * AMXAPI amx_Align32(uint32_t *v)
{
assert(sizeof(cell)==4);
assert(sizeof(*v)==4);
init_little_endian();
if (!amx_LittleEndian)
swap32(v);
@ -380,7 +380,7 @@ uint32_t * AMXAPI amx_Align32(uint32_t *v)
#if defined _I64_MAX || defined HAVE_I64
uint64_t * AMXAPI amx_Align64(uint64_t *v)
{
assert(sizeof(cell)==8);
assert(sizeof(*v)==8);
init_little_endian();
if (!amx_LittleEndian)
swap64(v);