From b482880da3b1a849ac8b6157ab693159cdc24998 Mon Sep 17 00:00:00 2001 From: "benl@cse.unsw.edu.au" Date: Wed, 3 Feb 2010 02:30:29 +0000 Subject: [PATCH] Cast to (void*) to stifle warning about signedness --- rts/posix/OSMem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c index 5d46e68..79c7fbf 100644 --- a/rts/posix/OSMem.c +++ b/rts/posix/OSMem.c @@ -158,10 +158,10 @@ gen_map_mblocks (lnat size) // unmap the slop bits around the chunk we allocated slop = (W_)ret & MBLOCK_MASK; - if (munmap(ret, MBLOCK_SIZE - slop) == -1) { + if (munmap((void*)ret, MBLOCK_SIZE - slop) == -1) { barf("gen_map_mblocks: munmap failed"); } - if (slop > 0 && munmap(ret+size-slop, slop) == -1) { + if (slop > 0 && munmap((void*)(ret+size-slop), slop) == -1) { barf("gen_map_mblocks: munmap failed"); } -- 1.7.10.4