diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-07 12:10:02 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-07 12:10:02 +0800 |
commit | a2cd729a5fa5e46c4b4d75235e4bf977212cb9bc (patch) | |
tree | 07e7aa6a668eff2b31b2e1e1fcb3be67e716218d | |
parent | c5ea25625c4cf0d08f7b709bcf33eafa8bb87879 (diff) | |
download | pttbbs-a2cd729a5fa5e46c4b4d75235e4bf977212cb9bc.tar pttbbs-a2cd729a5fa5e46c4b4d75235e4bf977212cb9bc.tar.gz pttbbs-a2cd729a5fa5e46c4b4d75235e4bf977212cb9bc.tar.bz2 pttbbs-a2cd729a5fa5e46c4b4d75235e4bf977212cb9bc.tar.lz pttbbs-a2cd729a5fa5e46c4b4d75235e4bf977212cb9bc.tar.xz pttbbs-a2cd729a5fa5e46c4b4d75235e4bf977212cb9bc.tar.zst pttbbs-a2cd729a5fa5e46c4b4d75235e4bf977212cb9bc.zip |
fix last commit bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@302 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/cache.c | 4 |
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 ) |