From 75f04e5eb16770e9508a486ee58b7b0910aa8cf0 Mon Sep 17 00:00:00 2001 From: Koen Vos Date: Tue, 31 Jan 2012 14:49:40 -0500 Subject: [PATCH] Fixes MSVC warnings --- silk/float/SigProc_FLP.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/silk/float/SigProc_FLP.h b/silk/float/SigProc_FLP.h index 7c7601f..8b5a1fa 100644 --- a/silk/float/SigProc_FLP.h +++ b/silk/float/SigProc_FLP.h @@ -162,7 +162,7 @@ static inline silk_float silk_sigmoid( silk_float x ) } /* floating-point to integer conversion (rounding) */ -static inline opus_int32 silk_float2int( double x ) +static inline opus_int32 silk_float2int( silk_float x ) { return (opus_int32)float2int( x ); } @@ -176,8 +176,7 @@ static inline void silk_float2short_array( { opus_int32 k; for( k = length - 1; k >= 0; k-- ) { - double x = in[k]; - out[k] = silk_SAT16( (opus_int32)float2int( x ) ); + out[k] = silk_SAT16( (opus_int32)float2int( in[k] ) ); } } -- 1.7.2.5