ref: 75f04e5eb16770e9508a486ee58b7b0910aa8cf0
parent: 66820f350d14fa3a65b73b6f1c2be1eb03ba47f3
author: Koen Vos <[email protected]>
date: Tue Jan 31 09:49:40 EST 2012
Fixes MSVC warnings
--- a/silk/float/SigProc_FLP.h
+++ b/silk/float/SigProc_FLP.h
@@ -162,7 +162,7 @@
}
/* 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 @@
{
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] ) );
}
}