Fixed assertion bugs
This commit is contained in:
parent
ca3bd4d118
commit
f5f2592ef4
@ -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 =
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user