]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - zone.c
fix a printf where a size_t was being printed as a long
[xonotic/darkplaces.git] / zone.c
diff --git a/zone.c b/zone.c
index 47c870e5929d79bed3bcafe28e052ef54c56d649..d61def1a021559333501f7d60432131eca9dfe55 100644 (file)
--- 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)