diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-08-05 14:33:38 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-08-05 14:33:38 +0800 |
commit | 7841c7805eecd66410e223336ee4fd557f67a126 (patch) | |
tree | afaf77af43f2134e3f3106682f85ca3978ee7fc9 /mbbsd | |
parent | dd8c2381489a259e60ec0d49aba233f53e7a24fe (diff) | |
download | pttbbs-7841c7805eecd66410e223336ee4fd557f67a126.tar pttbbs-7841c7805eecd66410e223336ee4fd557f67a126.tar.gz pttbbs-7841c7805eecd66410e223336ee4fd557f67a126.tar.bz2 pttbbs-7841c7805eecd66410e223336ee4fd557f67a126.tar.lz pttbbs-7841c7805eecd66410e223336ee4fd557f67a126.tar.xz pttbbs-7841c7805eecd66410e223336ee4fd557f67a126.tar.zst pttbbs-7841c7805eecd66410e223336ee4fd557f67a126.zip |
Fix last commit
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4395 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/read.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c index 8e15c51a..2c22de08 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -40,9 +40,12 @@ Tagger(time4_t chrono, int recno, int mode) for (head = 0, tail = TagNum - 1, comp = 1; head <= tail;) { posi = (head + tail) >> 1; - if (!(comp = TagList[posi].chrono - chrono)) - if (!(comp = TagList[posi].recno - recno)) + if (!(comp = TagList[posi].chrono - chrono)) { + if (!recno) break; + else if (!(comp = TagList[posi].recno - recno)) + break; + } if (comp < 0) { head = posi + 1; } else { |