summaryrefslogtreecommitdiffstats
path: root/src/lookup/pinyin_lookup2.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-05-27 13:38:26 +0800
committerPeng Wu <alexepico@gmail.com>2016-05-27 13:38:26 +0800
commit5df16470a5ab0968d482481c42cf255bf222ecee (patch)
treeca89b5f7bbf37648a222cf6b1f250011dc6eddad /src/lookup/pinyin_lookup2.cpp
parent9e098143481cb701af79f31902b200ca548ae27c (diff)
downloadlibpinyin-5df16470a5ab0968d482481c42cf255bf222ecee.tar.gz
libpinyin-5df16470a5ab0968d482481c42cf255bf222ecee.tar.xz
libpinyin-5df16470a5ab0968d482481c42cf255bf222ecee.zip
update class PhraseItem
Diffstat (limited to 'src/lookup/pinyin_lookup2.cpp')
-rw-r--r--src/lookup/pinyin_lookup2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lookup/pinyin_lookup2.cpp b/src/lookup/pinyin_lookup2.cpp
index 7501703..d1aad4d 100644
--- a/src/lookup/pinyin_lookup2.cpp
+++ b/src/lookup/pinyin_lookup2.cpp
@@ -717,7 +717,7 @@ bool PinyinLookup2::validate_constraint(PhoneticKeyMatrix * matrix,
guint32 end = constraint->m_end;
/* clear too long constraint */
- if (end > constraints->len){
+ if (end >= constraints->len){
clear_constraint(constraints, i);
continue;
}