From a2cd729a5fa5e46c4b4d75235e4bf977212cb9bc Mon Sep 17 00:00:00 2001 From: in2 Date: Fri, 7 Jun 2002 04:10:02 +0000 Subject: fix last commit bug git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@302 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd') 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 ) -- cgit v1.2.3