In vm_phsyseg_find, use u_int for start, len and try when doing a
binary search. Avoids the need for signed division by 2. Approved by thorpej.
This commit is contained in:
parent
9a0c12a504
commit
31a79ddeb0
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_page.h,v 1.35 2003/11/03 03:58:28 yamt Exp $ */
|
||||
/* $NetBSD: uvm_page.h,v 1.36 2003/11/10 16:13:05 rearnsha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Charles D. Cranor and Washington University.
|
||||
|
@ -342,7 +342,7 @@ vm_physseg_find(pframe, offp)
|
|||
|
||||
#elif (VM_PHYSSEG_STRAT == VM_PSTRAT_BSEARCH)
|
||||
/* binary search for it */
|
||||
int start, len, try;
|
||||
u_int start, len, try;
|
||||
|
||||
/*
|
||||
* if try is too large (thus target is less than try) we reduce
|
||||
|
|
Loading…
Reference in New Issue