From owner-p4-projects@FreeBSD.ORG Fri May 26 23:43:33 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 71E6616A969; Fri, 26 May 2006 23:43:32 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E419A16A937 for ; Fri, 26 May 2006 23:43:29 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADD6643D48 for ; Fri, 26 May 2006 23:43:29 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k4QNgRl7042772 for ; Fri, 26 May 2006 23:42:27 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k4QNgRnM042769 for perforce@freebsd.org; Fri, 26 May 2006 23:42:27 GMT (envelope-from kmacy@freebsd.org) Date: Fri, 26 May 2006 23:42:27 GMT Message-Id: <200605262342.k4QNgRnM042769@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 97911 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 May 2006 23:43:40 -0000 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;