projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4180687
)
Cast to (void*) to stifle warning about signedness
author
benl@cse.unsw.edu.au
<unknown>
Wed, 3 Feb 2010 02:30:29 +0000
(
02:30
+0000)
committer
benl@cse.unsw.edu.au
<unknown>
Wed, 3 Feb 2010 02:30:29 +0000
(
02:30
+0000)
rts/posix/OSMem.c
patch
|
blob
|
history
diff --git
a/rts/posix/OSMem.c
b/rts/posix/OSMem.c
index
5d46e68
..
79c7fbf
100644
(file)
--- 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");
}