summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-02-10 14:30:52 +0800
committerPeng Wu <alexepico@gmail.com>2017-02-10 14:30:52 +0800
commit997085b873a2b1395a309bdebf52a3ca702087e5 (patch)
treed7742d849c9d16ec081404cded21b38f3afdca56
parent012308bb33c81978617d91aef7352c2e5dd966a4 (diff)
downloadlibpinyin-997085b873a2b1395a309bdebf52a3ca702087e5.zip
libpinyin-997085b873a2b1395a309bdebf52a3ca702087e5.tar.gz
libpinyin-997085b873a2b1395a309bdebf52a3ca702087e5.tar.xz
fixes a typo
-rw-r--r--src/pinyin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index 62bb9c3..18d5779 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -1510,7 +1510,7 @@ static bool _prepend_sentence_candidates(pinyin_instance_t * instance,
return false;
/* prepend nbest match candidates to candidates. */
- for (size_t i = size - 1; i >= 0; --i) {
+ for (ssize_t i = size - 1; i >= 0; --i) {
lookup_candidate_t candidate;
candidate.m_candidate_type = NBEST_MATCH_CANDIDATE;
candidate.m_nbest_index = i;