From d19f0972c28cb78804048ada20501681d0074d97 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 27 May 2016 14:51:43 +0800 Subject: update comment --- src/lookup/pinyin_lookup2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lookup/pinyin_lookup2.cpp b/src/lookup/pinyin_lookup2.cpp index 93059ec..b5ceb86 100644 --- a/src/lookup/pinyin_lookup2.cpp +++ b/src/lookup/pinyin_lookup2.cpp @@ -555,7 +555,7 @@ bool PinyinLookup2::train_result2(PhoneticKeyMatrix * matrix, bool train_next = false; phrase_token_t last_token = sentence_start; - /* constraints->len + 1 == results->len */ + for (size_t i = 0; i < constraints->len; ++i) { phrase_token_t token = g_array_index(results, phrase_token_t, i); if (null_token == token) -- cgit