diff --git a/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c b/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c
index cae5a8b4ff..05a0216dc7 100644
--- a/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c
+++ b/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c
@@ -363,7 +363,7 @@ static switch_status_t pocketsphinx_asr_get_results(switch_asr_handle_t *ah, cha
 		switch_clear_flag(ps, PSFLAG_HAS_TEXT);
 		
 		conf = ps_get_prob(ps->ps, &ps->uttid);
-		lconf = logmath_log_to_ln(ps_get_logmath(ps->ps), conf);
+		lconf = (int32_t)logmath_log_to_ln(ps_get_logmath(ps->ps), conf);
 		ps->confidence = lconf - lconf - lconf;
 
 		if (ps->confidence > 100) {