diff options
author | Peng Wu <alexepico@gmail.com> | 2016-05-27 13:38:26 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-05-27 13:38:26 +0800 |
commit | 5df16470a5ab0968d482481c42cf255bf222ecee (patch) | |
tree | ca89b5f7bbf37648a222cf6b1f250011dc6eddad /src/lookup | |
parent | 9e098143481cb701af79f31902b200ca548ae27c (diff) | |
download | libpinyin-5df16470a5ab0968d482481c42cf255bf222ecee.tar.gz |
update class PhraseItem
Diffstat (limited to 'src/lookup')
-rw-r--r-- | src/lookup/pinyin_lookup2.cpp | 2 |
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; } |