summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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];