From: Howard Chu Date: Sat, 22 Sep 2001 04:10:03 +0000 (+0000) Subject: Fix previous idl_find patch. Cannot test <=0 with unsigned ints, duh... X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1073 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=00a28378f8e74db5e6b80e0bc32168703738fd4f;p=openldap Fix previous idl_find patch. Cannot test <=0 with unsigned ints, duh... --- diff --git a/servers/slapd/back-ldbm/idl.c b/servers/slapd/back-ldbm/idl.c index fd38d323e8..a3fa50eb77 100644 --- a/servers/slapd/back-ldbm/idl.c +++ b/servers/slapd/back-ldbm/idl.c @@ -306,7 +306,7 @@ idl_find( ID id ) { - unsigned int lo=0, hi=ID_BLOCK_NIDS(b)-1, nr; + int lo=0, hi=ID_BLOCK_NIDS(b)-1, nr; for (;lo<=hi;) {