diff options
author | Andrey Nazarov <skuller@skuller.net> | 2012-07-25 21:43:09 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2012-07-25 21:43:09 +0400 |
commit | 7305a6a670c6c1af511b8b8ff18d10d61ee8516c (patch) | |
tree | 377b285315baf5e774ad4f418f53ee26471b050f /src/unix/hunk.c | |
parent | cd26dea31185e2f9ba0989ce5fef092bd35460b2 (diff) |
Fix arithmetic on void pointers.
Diffstat (limited to 'src/unix/hunk.c')
-rw-r--r-- | src/unix/hunk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/hunk.c b/src/unix/hunk.c index c4d1fcb..ebd0d20 100644 --- a/src/unix/hunk.c +++ b/src/unix/hunk.c @@ -66,7 +66,7 @@ void Hunk_End(memhunk_t *hunk) #else void *unmap_base = (byte *)hunk->base + newsize; size_t unmap_len = hunk->maxsize - newsize; - void *buf = munmap(unmap_base, unmap_len) + hunk->base; + void *buf = munmap(unmap_base, unmap_len) + (byte *)hunk->base; #endif if (buf != hunk->base) Com_Error(ERR_FATAL, "%s: could not remap virtual block: %s", |