From d79b9b10822654f3f1194b5ed22a6fdd42dc9635 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Sun, 1 Apr 2001 05:55:21 +0000 Subject: [PATCH] minor change --- src/libFLAC/lpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libFLAC/lpc.c b/src/libFLAC/lpc.c index 3393a5a0..d15680eb 100644 --- a/src/libFLAC/lpc.c +++ b/src/libFLAC/lpc.c @@ -109,7 +109,7 @@ int FLAC__lpc_quantize_coefficients(const real lp_coeff[], unsigned order, unsig return 2; } else { - const int maxshift = (int)precision - floor(log(cmax) / M_LN2) - 1; + const int maxshift = (int)precision - (int)floor(log(cmax) / M_LN2) - 1; const int max_shiftlimit = (1 << (FLAC__SUBFRAME_LPC_QLP_SHIFT_LEN-1)) - 1; const int min_shiftlimit = -max_shiftlimit - 1;