diff options
author | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-08-05 14:17:45 +0800 |
---|---|---|
committer | wens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-08-05 14:17:45 +0800 |
commit | dd8c2381489a259e60ec0d49aba233f53e7a24fe (patch) | |
tree | 1f2eb6a8c697df45114aa6253d1d550e8ac0c69c /mbbsd | |
parent | ef6edab2f38e84e240b05f587d79dacd04f44c2e (diff) | |
download | pttbbs-dd8c2381489a259e60ec0d49aba233f53e7a24fe.tar pttbbs-dd8c2381489a259e60ec0d49aba233f53e7a24fe.tar.gz pttbbs-dd8c2381489a259e60ec0d49aba233f53e7a24fe.tar.bz2 pttbbs-dd8c2381489a259e60ec0d49aba233f53e7a24fe.tar.lz pttbbs-dd8c2381489a259e60ec0d49aba233f53e7a24fe.tar.xz pttbbs-dd8c2381489a259e60ec0d49aba233f53e7a24fe.tar.zst pttbbs-dd8c2381489a259e60ec0d49aba233f53e7a24fe.zip |
Support tagging of multiple files with same chrono
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4394 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/read.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c index 341e2320..8e15c51a 100644 --- a/mbbsd/read.c +++ b/mbbsd/read.c @@ -40,10 +40,10 @@ Tagger(time4_t chrono, int recno, int mode) for (head = 0, tail = TagNum - 1, comp = 1; head <= tail;) { posi = (head + tail) >> 1; - comp = TagList[posi].chrono - chrono; - if (!comp) { - break; - } else if (comp < 0) { + if (!(comp = TagList[posi].chrono - chrono)) + if (!(comp = TagList[posi].recno - recno)) + break; + if (comp < 0) { head = posi + 1; } else { tail = posi - 1; |