PERFORCE change 97911 for review
Kip Macy
kmacy at FreeBSD.org
Fri May 26 16:43:40 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=97911
Change 97911 by kmacy at kmacy_storage:sun4v_work on 2006/05/26 23:41:54
fix LP64
Affected files ...
.. //depot/projects/kmacy_sun4v/src/tools/regression/fsx/fsx.c#3 edit
Differences ...
==== //depot/projects/kmacy_sun4v/src/tools/regression/fsx/fsx.c#3 (text+ko) ====
@@ -475,7 +475,7 @@
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 @@
* 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;
More information about the p4-projects
mailing list