diff options
author | Aliaksey Kandratsenka <alk@tut.by> | 2015-05-03 13:15:16 -0700 |
---|---|---|
committer | Aliaksey Kandratsenka <alk@tut.by> | 2015-05-03 13:15:16 -0700 |
commit | 772a686c45455893708178d3b59b1d3b571015aa (patch) | |
tree | 2977a96c0210f2fa6f88188067eb43d5ad1f74d9 | |
parent | 0a3bafd645764250732f3c0627534142568f6f1f (diff) | |
download | gperftools-772a686c45455893708178d3b59b1d3b571015aa.tar.gz |
issue-683: fix compile error in clang with -m32 and 64-bit off_t
-rwxr-xr-x | src/malloc_hook_mmap_linux.h | 2 |
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 |