summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-12-02 15:45:02 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-02 15:45:02 +0800
commit23d9cb43b3880a8ce5daf896d7b1df931e3cdbba (patch)
tree936731fd854c435677f48e3ecac84c622f52da84
parent1ab715b2200375c41ac23a62b5207dfeb6c1fb94 (diff)
downloadlibpinyin-23d9cb43b3880a8ce5daf896d7b1df931e3cdbba.tar.gz
libpinyin-23d9cb43b3880a8ce5daf896d7b1df931e3cdbba.tar.xz
libpinyin-23d9cb43b3880a8ce5daf896d7b1df931e3cdbba.zip
fixes remove index
-rw-r--r--src/storage/chewing_large_table.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/chewing_large_table.cpp b/src/storage/chewing_large_table.cpp
index 74050d8..4d35996 100644
--- a/src/storage/chewing_large_table.cpp
+++ b/src/storage/chewing_large_table.cpp
@@ -611,7 +611,7 @@ int ChewingArrayIndexLevel<phrase_length>::remove_index
break;
}
- if (cur_elem == range.second || cur_elem->m_token != token)
+ if (cur_elem == range.second)
return REMOVE_ITEM_DONOT_EXISTS;
int offset = (cur_elem - begin) * sizeof(IndexItem);