From 67c768097cdf267bb4b74be4efb2dcad7573e509 Mon Sep 17 00:00:00 2001 From: Tero Lindeman Date: Sun, 5 Apr 2015 16:06:24 +0300 Subject: [PATCH] Silence warnings on 64-platforms --- src/memwriter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/memwriter.c b/src/memwriter.c index 521c67b2..f02f0fe6 100644 --- a/src/memwriter.c +++ b/src/memwriter.c @@ -50,7 +50,7 @@ static size_t mw_write(SDL_RWops *ops, const void *data, size_t size, size_t num mem->allocated = mem->allocated + chunk; mem->data = realloc(mem->data, mem->allocated); - debug("MemWriter: Allocating %d bytes (%d bytes allocated total)", chunk, mem->allocated); + debug("MemWriter: Allocating %d bytes (%d bytes allocated total)", chunk, (int)mem->allocated); } memcpy(mem->data + mem->position, data, size * num); @@ -73,7 +73,7 @@ static int mw_close(SDL_RWops *ops) if (mem->flush) { - debug("MemWriter: Flushing %d bytes to disk", mem->size); + debug("MemWriter: Flushing %d bytes to disk", (int)mem->size); r = fwrite(mem->data, mem->size, 1, mem->flush) == mem->size ? 0 : -1; }