issue-683: fix compile error in clang with -m32 and 64-bit off_t

This commit is contained in:
Aliaksey Kandratsenka 2015-05-03 13:15:16 -07:00
parent 0a3bafd645
commit 772a686c45
1 changed files with 1 additions and 1 deletions

View File

@ -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