diff options
author | jb <jb@FreeBSD.org> | 2006-08-04 21:45:08 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2006-08-04 21:45:08 +0000 |
commit | 7cec994cf03723a459008ffc18e88464888cb338 (patch) | |
tree | 180002aade25bb50fa238f0725f85202a8f6e421 /tools/regression/fsx | |
parent | 1152880ccd4a83866252f99ea2e5010685865055 (diff) | |
download | FreeBSD-src-7cec994cf03723a459008ffc18e88464888cb338.zip FreeBSD-src-7cec994cf03723a459008ffc18e88464888cb338.tar.gz |
Fix for architectures where sizeof(void *) > sizeof(int).
Diffstat (limited to 'tools/regression/fsx')
-rw-r--r-- | tools/regression/fsx/fsx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/fsx/fsx.c b/tools/regression/fsx/fsx.c index b57efe6..316185d 100644 --- a/tools/regression/fsx/fsx.c +++ b/tools/regression/fsx/fsx.c @@ -475,7 +475,7 @@ doread(unsigned offset, unsigned size) void check_eofpage(char *s, unsigned offset, char *p, int size) { - unsigned last_page, should_be_zero; + uintptr_t last_page, should_be_zero; if (offset + size <= (file_size & ~page_mask)) return; @@ -485,7 +485,7 @@ check_eofpage(char *s, unsigned offset, char *p, int size) * beyond the true end of the file mapping * (as required by mmap def in 1996 posix 1003.1) */ - last_page = ((int)p + (offset & page_mask) + size) & ~page_mask; + last_page = ((uintptr_t)p + (offset & page_mask) + size) & ~page_mask; for (should_be_zero = last_page + (file_size & page_mask); should_be_zero < last_page + page_size; |