diff options
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", |