summaryrefslogtreecommitdiff
path: root/src/malloc_hook.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/malloc_hook.cc')
-rw-r--r--src/malloc_hook.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc_hook.cc b/src/malloc_hook.cc
index 8499c73..613e612 100644
--- a/src/malloc_hook.cc
+++ b/src/malloc_hook.cc
@@ -115,7 +115,7 @@ extern "C" void* mmap64(void *start, size_t length,
int fd, __off64_t offset) __THROW {
void *result;
- result = syscall(SYS_mmap, start, length, prot, flags, fd, offset);
+ result = (void *)syscall(SYS_mmap, start, length, prot, flags, fd, offset);
MallocHook::InvokeMmapHook(result, start, length, prot, flags, fd, offset);
return result;
}