summaryrefslogtreecommitdiffstats
path: root/src/lookup
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-02-13 13:14:30 +0800
committerPeng Wu <alexepico@gmail.com>2017-02-13 13:14:30 +0800
commit114e9dc802ea243925ce9e19e0ce4e2d83356ac5 (patch)
treec7613bb2080ad48d6ddde3e0cff6c4c5b22e950e /src/lookup
parentbac036fbf602ecf9879b900dffde9f791c9936f0 (diff)
downloadlibpinyin-114e9dc802ea243925ce9e19e0ce4e2d83356ac5.tar.gz
libpinyin-114e9dc802ea243925ce9e19e0ce4e2d83356ac5.tar.xz
libpinyin-114e9dc802ea243925ce9e19e0ce4e2d83356ac5.zip
fixes a typo
Diffstat (limited to 'src/lookup')
-rw-r--r--src/lookup/phonetic_lookup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lookup/phonetic_lookup.h b/src/lookup/phonetic_lookup.h
index af521cc..845bf90 100644
--- a/src/lookup/phonetic_lookup.h
+++ b/src/lookup/phonetic_lookup.h
@@ -35,7 +35,7 @@ namespace pinyin{
/* internal definition */
static const size_t nbeam = 32;
-#define LONG_SENTENCE_PENALTY log(1.2)
+#define LONG_SENTENCE_PENALTY log(1.2f)
struct trellis_value_t {
phrase_token_t m_handles[2];