Skip to content

Commit

Permalink
Silence warnings on 64-platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
kometbomb committed Apr 5, 2015
1 parent 1283565 commit 67c7680
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/memwriter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}

Expand Down

0 comments on commit 67c7680

Please sign in to comment.