summaryrefslogtreecommitdiffstats
path: root/src/lookup/pinyin_lookup.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-08-24 09:37:34 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-24 09:37:34 +0800
commit51b8bf1f01b64cb8c22dd25e9ac636b80ba8cd18 (patch)
tree3dcadcd0826f0dd48e1c0238435e0efff7b6063f /src/lookup/pinyin_lookup.cpp
parent0056e6c14abf84cbbcb41c0a70049d321a7ef4f4 (diff)
downloadlibpinyin-51b8bf1f01b64cb8c22dd25e9ac636b80ba8cd18.tar.gz
libpinyin-51b8bf1f01b64cb8c22dd25e9ac636b80ba8cd18.tar.xz
libpinyin-51b8bf1f01b64cb8c22dd25e9ac636b80ba8cd18.zip
fixes compile with c++0x
Diffstat (limited to 'src/lookup/pinyin_lookup.cpp')
-rw-r--r--src/lookup/pinyin_lookup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lookup/pinyin_lookup.cpp b/src/lookup/pinyin_lookup.cpp
index 7b8e623..b543321 100644
--- a/src/lookup/pinyin_lookup.cpp
+++ b/src/lookup/pinyin_lookup.cpp
@@ -34,8 +34,8 @@
using namespace pinyin;
-const gfloat PinyinLookup::bigram_lambda;
-const gfloat PinyinLookup::unigram_lambda;
+const gfloat PinyinLookup::bigram_lambda = LAMBDA_PARAMETER;
+const gfloat PinyinLookup::unigram_lambda = 1 - LAMBDA_PARAMETER;
PinyinLookup::PinyinLookup(PinyinCustomSettings * custom,
PinyinLargeTable * pinyin_table,