summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1995-09-12 14:42:43 +0000
committerdyson <dyson@FreeBSD.org>1995-09-12 14:42:43 +0000
commit7f65a388a815a2a06aed6df0d3c67777ffe96d0e (patch)
treebbb78e9fb5d7db196621100f019b4f48d7443447 /sys
parent651f993a33953cccca2137efdfcaca1b17beb5de (diff)
downloadFreeBSD-src-7f65a388a815a2a06aed6df0d3c67777ffe96d0e.zip
FreeBSD-src-7f65a388a815a2a06aed6df0d3c67777ffe96d0e.tar.gz
Fix really bogus casting of a block number to a long. Also change the
comparison from a "< 0" to "== -1" like it should be.
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vnode_pager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vnode_pager.c b/sys/vm/vnode_pager.c
index f67e895..7b5f5f5 100644
--- a/sys/vm/vnode_pager.c
+++ b/sys/vm/vnode_pager.c
@@ -38,7 +38,7 @@
* SUCH DAMAGE.
*
* from: @(#)vnode_pager.c 7.5 (Berkeley) 4/20/91
- * $Id: vnode_pager.c,v 1.47 1995/09/06 05:37:41 dyson Exp $
+ * $Id: vnode_pager.c,v 1.48 1995/09/11 00:46:19 dyson Exp $
*/
/*
@@ -207,7 +207,7 @@ vnode_pager_haspage(object, offset, before, after)
after, before);
if (err)
return TRUE;
- if (((long) bn) < 0)
+ if ( bn == -1)
return FALSE;
poff = (offset - (reqblock * bsize)) / PAGE_SIZE;
if (before) {
OpenPOWER on IntegriCloud