Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2006 23:42:27 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 97911 for review
Message-ID:  <200605262342.k4QNgRnM042769@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=97911

Change 97911 by kmacy@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605262342.k4QNgRnM042769>