summaryrefslogtreecommitdiff
path: root/libgo/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime')
-rw-r--r--libgo/runtime/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/runtime/mem.c b/libgo/runtime/mem.c
index 05f071ae06c..9df4c870dcf 100644
--- a/libgo/runtime/mem.c
+++ b/libgo/runtime/mem.c
@@ -44,13 +44,13 @@ mmap_fixed(byte *v, uintptr n, int32 prot, int32 flags, int32 fd, uint32 offset)
{
void *p;
- p = runtime_mmap(v, n, prot, flags, fd, offset);
+ p = runtime_mmap((void *)v, n, prot, flags, fd, offset);
if(p != v && addrspace_free(v, n)) {
// On some systems, mmap ignores v without
// MAP_FIXED, so retry if the address space is free.
if(p != MAP_FAILED)
runtime_munmap(p, n);
- p = runtime_mmap(v, n, prot, flags|MAP_FIXED, fd, offset);
+ p = runtime_mmap((void *)v, n, prot, flags|MAP_FIXED, fd, offset);
}
return p;
}