From e294715aaa4b27f7f577d72c5cd4e606dde6baee Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Thu, 18 Jan 2018 02:28:35 +0100 Subject: Remove warnings about conversion to double in toolame --- libtoolame-dab/encode_new.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libtoolame-dab') diff --git a/libtoolame-dab/encode_new.c b/libtoolame-dab/encode_new.c index a437e70..3ba74c9 100644 --- a/libtoolame-dab/encode_new.c +++ b/libtoolame-dab/encode_new.c @@ -676,13 +676,13 @@ int bits_for_nonoise_new (double SMR[2][SBLIMIT], until we have the required MNR value */ for (ba = 0; ba < maxAlloc - 1; ++ba) { int thisstep_index = step_index[thisline][ba]; - if ((SNR[thisstep_index] - SMR[ch][sb]) >= min_mnr) + if ((SNR[thisstep_index] - SMR[ch][sb]) >= (double)min_mnr) break; /* we found enough bits */ } if (nch == 2 && sb >= jsbound) /* check other JS channel */ for (; ba < maxAlloc - 1; ++ba) { int thisstep_index = step_index[thisline][ba]; - if ((SNR[thisstep_index] - SMR[1-ch][sb]) >= min_mnr) + if ((SNR[thisstep_index] - SMR[1-ch][sb]) >= (double)min_mnr) break; } if (ba > 0) { -- cgit v1.2.3