summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-11-09 12:49:35 +0800
committerPeng Wu <alexepico@gmail.com>2010-11-09 12:49:35 +0800
commit33d4a4dba293513531d8b4734b7e1053bc30f1e8 (patch)
tree4b484839f706d7116c2c9e2a0ada4cb8e26c60d0
parent6df26a7719de824f1ce0617ee30d9cf40fc8fc79 (diff)
downloadlibpinyin-33d4a4dba293513531d8b4734b7e1053bc30f1e8.tar.gz
libpinyin-33d4a4dba293513531d8b4734b7e1053bc30f1e8.tar.xz
libpinyin-33d4a4dba293513531d8b4734b7e1053bc30f1e8.zip
fixes a typo
-rw-r--r--src/lookup/pinyin_lookup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lookup/pinyin_lookup.cpp b/src/lookup/pinyin_lookup.cpp
index 37611d8..e84973f 100644
--- a/src/lookup/pinyin_lookup.cpp
+++ b/src/lookup/pinyin_lookup.cpp
@@ -381,7 +381,7 @@ bool PinyinLookup::save_next_step(int next_step_pos, lookup_value_t * cur_step,
bool PinyinLookup::final_step(MatchResults & results){
//reset results
g_array_set_size(results, m_steps_content->len);
- for ( size_t i = 0 ; i < m_steps_content->len ; ++i){
+ for ( size_t i = 0 ; i < results->len ; ++i){
phrase_token_t * token = &g_array_index(results, phrase_token_t, i);
*token = null_token;
}