From: havoc Date: Thu, 24 Dec 2009 16:22:47 +0000 (+0000) Subject: fix a printf where a size_t was being printed as a long X-Git-Tag: xonotic-v0.1.0preview~971 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=95ed6d481f1ccbd2d39372acf2a38e2fc0b1782c fix a printf where a size_t was being printed as a long git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9677 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/zone.c b/zone.c index 47c870e5..d61def1a 100644 --- a/zone.c +++ b/zone.c @@ -764,7 +764,7 @@ void Mem_PrintList(size_t minallocationsize) "size name\n"); for (pool = poolchain;pool;pool = pool->next) { - Con_Printf("%10luk (%10luk actual) %s (%+li byte change) %s\n", (unsigned long) ((pool->totalsize + 1023) / 1024), (unsigned long)((pool->realsize + 1023) / 1024), pool->name, (long)pool->totalsize - pool->lastchecksize, (pool->flags & POOLFLAG_TEMP) ? "TEMP" : ""); + Con_Printf("%10luk (%10luk actual) %s (%+li byte change) %s\n", (unsigned long) ((pool->totalsize + 1023) / 1024), (unsigned long)((pool->realsize + 1023) / 1024), pool->name, (long)(pool->totalsize - pool->lastchecksize), (pool->flags & POOLFLAG_TEMP) ? "TEMP" : ""); pool->lastchecksize = pool->totalsize; for (mem = pool->chain;mem;mem = mem->next) if (mem->size >= minallocationsize)