summaryrefslogtreecommitdiffstats
path: root/src/lookup/phonetic_lookup.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-02-08 11:06:00 +0800
committerPeng Wu <alexepico@gmail.com>2017-02-08 11:06:00 +0800
commit24523278fbc44732c58407393f8779a8ec41712c (patch)
tree369a5217434d601a727f9463ead07887845ff328 /src/lookup/phonetic_lookup.h
parent8d404a360f3f5e2515cb8b8c7b3f2ea3b4e65580 (diff)
downloadlibpinyin-24523278fbc44732c58407393f8779a8ec41712c.tar.gz
libpinyin-24523278fbc44732c58407393f8779a8ec41712c.tar.xz
libpinyin-24523278fbc44732c58407393f8779a8ec41712c.zip
fixes phonetic_lookup_heap.h again
Diffstat (limited to 'src/lookup/phonetic_lookup.h')
-rw-r--r--src/lookup/phonetic_lookup.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lookup/phonetic_lookup.h b/src/lookup/phonetic_lookup.h
index 6b88804..f7d49af 100644
--- a/src/lookup/phonetic_lookup.h
+++ b/src/lookup/phonetic_lookup.h
@@ -64,6 +64,7 @@ struct trellis_value_t {
template <gint32 nbest>
static bool inline trellis_value_less_than(const trellis_value_t * exist_item,
const trellis_value_t * new_item) {
+#if 1
if (nbest > 1) {
/* allow longer sentence */
if (exist_item->m_sentence_length + 1 == new_item->m_sentence_length &&
@@ -74,6 +75,7 @@ static bool inline trellis_value_less_than(const trellis_value_t * exist_item,
exist_item->m_poss < new_item->m_poss + LONG_SENTENCE_PENALTY)
return true;
}
+#endif
/* the same length but better possibility */
if (exist_item->m_sentence_length == new_item->m_sentence_length &&