summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-09-03 10:08:03 +0800
committerPeng Wu <alexepico@gmail.com>2012-09-03 10:08:03 +0800
commit5ee955b80e969b650a92e679f4923c1c8bec769d (patch)
tree356216d166995be9b850dd00a4303bac50f5b6ec
parent930426a28be0774339950c508d5bb324961d0710 (diff)
downloadlibpinyin-5ee955b80e969b650a92e679f4923c1c8bec769d.tar.gz
libpinyin-5ee955b80e969b650a92e679f4923c1c8bec769d.tar.xz
libpinyin-5ee955b80e969b650a92e679f4923c1c8bec769d.zip
fixes facade_phrase_table2.h
-rw-r--r--src/storage/facade_phrase_table2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/facade_phrase_table2.h b/src/storage/facade_phrase_table2.h
index f935ca6..a6e8bdc 100644
--- a/src/storage/facade_phrase_table2.h
+++ b/src/storage/facade_phrase_table2.h
@@ -100,8 +100,8 @@ public:
/* out */ PhraseTokens tokens) const {
/* clear ranges. */
for (size_t i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
- if (ranges[i])
- g_array_set_size(ranges[i], 0);
+ if (tokens[i])
+ g_array_set_size(tokens[i], 0);
}
int result = SEARCH_NONE;