diff options
Diffstat (limited to 'src/lookup/phonetic_lookup.h')
-rw-r--r-- | src/lookup/phonetic_lookup.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lookup/phonetic_lookup.h b/src/lookup/phonetic_lookup.h index 6c5dc8d..ba3c11e 100644 --- a/src/lookup/phonetic_lookup.h +++ b/src/lookup/phonetic_lookup.h @@ -62,7 +62,7 @@ static bool inline trellis_value_less_than(const trellis_value_t * exist_item, if (nbest > 1) { /* allow longer sentence */ if (exist_item->m_sentence_length + 1 == new_item->m_sentence_length && - exist_item->m_poss * LONG_SENTENCE_PENALTY < new_item->m_poss) + exist_item->m_poss + LONG_SENTENCE_PENALTY < new_item->m_poss) return true; } @@ -76,7 +76,7 @@ static bool inline trellis_value_less_than(const trellis_value_t * exist_item, if (nbest > 1) { /* allow longer sentence */ if (exist_item->m_sentence_length == new_item->m_sentence_length + 1 && - exist_item->m_poss < new_item->m_poss * LONG_SENTENCE_PENALTY) + exist_item->m_poss < new_item->m_poss + LONG_SENTENCE_PENALTY) return true; } |