summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-25 14:58:45 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-25 14:58:45 +0800
commitde8057576011eb536d87194da10c9ec48dd8d092 (patch)
treef990ba499517af6b9b6cf841dbd58dc074ba04f5
parentf332a01334342bdd4169324bdf889386ff3676fa (diff)
downloadlibpinyin-de8057576011eb536d87194da10c9ec48dd8d092.zip
libpinyin-de8057576011eb536d87194da10c9ec48dd8d092.tar.gz
libpinyin-de8057576011eb536d87194da10c9ec48dd8d092.tar.xz
add const modifiers to train factor
-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 7146e51..e2f563c 100644
--- a/src/lookup/pinyin_lookup.cpp
+++ b/src/lookup/pinyin_lookup.cpp
@@ -449,7 +449,7 @@ bool PinyinLookup::train_result(PinyinKeyVector keys, CandidateConstraints const
//TODO: verify the new training method.
phrase_token_t last_token = sentence_start;
// constraints->len + 1 == results->len
- guint32 train_factor = 23 * 5;
+ const guint32 train_factor = 23 * 5;
for ( size_t i = 0; i < constraints->len; ++i){
phrase_token_t * token = &g_array_index(results, phrase_token_t, i);
if ( *token == null_token )