summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-05-24 11:24:48 +0800
committerPeng Wu <alexepico@gmail.com>2012-05-24 11:24:48 +0800
commit5c43c20c416f6e0d01eb6ce8352521d81c34d0de (patch)
treeadfa09be440731071c184905b49f8f0075bacbd1
parent1f811cb28e6ed1d0c1665943dd37025cdca1381e (diff)
downloadlibpinyin-5c43c20c416f6e0d01eb6ce8352521d81c34d0de.zip
libpinyin-5c43c20c416f6e0d01eb6ce8352521d81c34d0de.tar.gz
libpinyin-5c43c20c416f6e0d01eb6ce8352521d81c34d0de.tar.xz
fixes _append_items
-rw-r--r--src/pinyin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index eb3dde0..5cd9945 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -572,7 +572,7 @@ static void _append_items(pinyin_context_t * context,
lookup_candidate_t * template_item,
CandidateVector items) {
/* reduce and append to a single GArray. */
- for (size_t m = 0; m <= PHRASE_INDEX_LIBRARY_COUNT; ++m) {
+ for (size_t m = 0; m < PHRASE_INDEX_LIBRARY_COUNT; ++m) {
if (NULL == ranges[m])
continue;