From d627d62cefd5c362bb65bd33ab7100926d01de15 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 24 Jun 2011 11:08:53 +0800 Subject: fixes a typo --- utils/training/gen_k_mixture_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/training/gen_k_mixture_model.cpp b/utils/training/gen_k_mixture_model.cpp index 19dd102..f6c9835 100644 --- a/utils/training/gen_k_mixture_model.cpp +++ b/utils/training/gen_k_mixture_model.cpp @@ -298,7 +298,7 @@ static bool post_processing_unigram(KMixtureModelBigram * bigram, KMixtureModelMagicHeader magic_header; assert(bigram->get_magic_header(magic_header)); - if ( magic_header.m_total_freq + delta < magic_header.m_total_freq ){ + if ( magic_header.m_total_freq + total_freq < magic_header.m_total_freq ){ fprintf(stderr, "the m_total_freq in magic header overflows.\n"); return false; } -- cgit