PERFORCE change 28151 for review

Peter Wemm peter at FreeBSD.org
Fri Apr 4 19:43:43 PST 2003


http://perforce.freebsd.org/chv.cgi?CH=28151

Change 28151 by peter at peter_overcee on 2003/04/04 19:43:03

	looks like the FSF configuration of gcc for freebsd has got ptrdiff_t = int, which
	truely blows.

Affected files ...

.. //depot/projects/hammer/sys/vm/vm_pager.c#3 edit

Differences ...

==== //depot/projects/hammer/sys/vm/vm_pager.c#3 (text+ko) ====

@@ -335,7 +335,7 @@
 	bp->b_rcred = NOCRED;
 	bp->b_wcred = NOCRED;
 	bp->b_qindex = 0;	/* On no queue (QUEUE_NONE) */
-	bp->b_data = (caddr_t) (MAXPHYS * (bp - swbuf)) + swapbkva;
+	bp->b_data = (caddr_t) ((MAXPHYS * (bp - swbuf)) + swapbkva);
 	bp->b_kvabase = bp->b_data;
 	bp->b_kvasize = MAXPHYS;
 	bp->b_xflags = 0;


More information about the p4-projects mailing list