summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 1c22b0e3..309c8152 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -1,4 +1,4 @@
-/* $Id: cache.c,v 1.34 2002/06/07 00:10:47 in2 Exp $ */
+/* $Id: cache.c,v 1.35 2002/06/07 04:10:02 in2 Exp $ */
#include "bbs.h"
#ifndef __FreeBSD__
@@ -463,7 +463,7 @@ userinfo_t *search_ulistn(int uid, int unum)
ulist=SHM->sorted[SHM->currsorted][6];
for( i = ((start + end) / 2) ; ; i = (start + end) / 2 ){
j = uid - ulist[i]->uid;
- if( j != 0 ){
+ if( j == 0 ){
for( ; i > 0 && uid == ulist[i - 1]->uid ; --i )
; /* «ü¨ì²Ä¤@µ§ */
if( ulist[i + unum - 1]!=NULL && uid==ulist[i + unum - 1]->uid )