diff options
author | Koen Vos <koen.vos@skype.net> | 2012-01-31 23:49:40 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-01-31 23:49:40 +0400 |
commit | 75f04e5eb16770e9508a486ee58b7b0910aa8cf0 (patch) | |
tree | 15de18100f1ddf4c9aee1d08bd0a7cf42b3e9432 /silk/float | |
parent | 66820f350d14fa3a65b73b6f1c2be1eb03ba47f3 (diff) |
Fixes MSVC warnings
Diffstat (limited to 'silk/float')
-rw-r--r-- | 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 7c7601fb..8b5a1fac 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] ) ); } } |