This patch is part of a series of patches for speech-tools for Debian GNU/Linux, which primarily fix build errors with GCC 4.3 and newer. --- speech-tools-1.2.3.orig/grammar/ngram/EST_Ngrammar.cc +++ speech-tools-1.2.3/grammar/ngram/EST_Ngrammar.cc @@ -37,8 +37,8 @@ /* An EST_Ngram class for building and manipulating bigrams trigrams etc */ /* */ /*=======================================================================*/ -#include -#include +#include +#include #include #include #include @@ -579,7 +579,7 @@ return false; } - p_num_states = (int)pow(vocab->length(),p_order-1); + p_num_states = (int)pow(vocab->length(),(float)(p_order-1)); p_states = new EST_NgrammarState[p_num_states]; for (i=0; i < p_num_states; i++) p_states[i].init(i,pred_vocab); @@ -597,7 +597,7 @@ return false; } - p_num_states = (int)pow(vocab->length(),p_order-1); + p_num_states = (int)pow(vocab->length(),(float)(p_order-1)); p_states = new EST_NgrammarState[p_num_states]; return (bool)(p_states != NULL);