summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/malloc_hook_mmap_linux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc_hook_mmap_linux.h b/src/malloc_hook_mmap_linux.h
index 8e5a3b0..0f531db 100755
--- a/src/malloc_hook_mmap_linux.h
+++ b/src/malloc_hook_mmap_linux.h
@@ -105,7 +105,7 @@ static inline void* do_mmap64(void *start, size_t length,
// Fall back to old 32-bit offset mmap() call
// Old syscall interface cannot handle six args, so pass in an array
int32 args[6] = { (int32) start, (int32) length, prot, flags, fd,
- (off_t) offset };
+ (int32)(off_t) offset };
result = (void *)syscall(SYS_mmap, args);
}
#else