--- deliantra/server/common/utils.C 2008/01/22 15:53:01 1.69 +++ deliantra/server/common/utils.C 2008/02/01 15:54:07 1.71 @@ -500,7 +500,7 @@ #ifdef DEBUG_SALLOC -#define MAGIC 0xa1b2c35543deadL +#define MAGIC 0xa1b2c35543deadLL void *g_slice_alloc (unsigned long size) { @@ -523,7 +523,7 @@ unsigned long *p = (unsigned long *)ptr; unsigned long s = *--p ^ MAGIC; - if ((*p ^ MAGIC) != size) + if (size != (unsigned long)(*p ^ MAGIC)) LOG (logBacktrace | llevError, "slice free size (%lx) doesn't match alloc size (%lx)\n", size, s); *p = MAGIC;