summaryrefslogtreecommitdiff
path: root/libgo/runtime/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/mem.c')
-rw-r--r--libgo/runtime/mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/runtime/mem.c b/libgo/runtime/mem.c
index 8e374863b8e..6312480b69d 100644
--- a/libgo/runtime/mem.c
+++ b/libgo/runtime/mem.c
@@ -47,7 +47,7 @@ addrspace_free(void *v __attribute__ ((unused)), uintptr n __attribute__ ((unuse
chunk = page_size * sizeof vec;
if(chunk > (n - off))
chunk = n - off;
- errval = mincore((int8*)v + off, chunk, vec);
+ errval = mincore((char*)v + off, chunk, (void*)vec);
// ENOMEM means unmapped, which is what we want.
// Anything else we assume means the pages are mapped.
if(errval == 0 || errno != ENOMEM)