shithub: opus

Download patch

ref: b29ad007e5f287bd16c780b778128b3a3bbafd13
parent: ea95c533c8c3e8c6ec901fd6d34b8751e2c2243e
author: Jean-Marc Valin <[email protected]>
date: Fri Jul 12 18:59:29 EDT 2013

Fixes MSVC warnings

--- a/src/opus_multistream_encoder.c
+++ b/src/opus_multistream_encoder.c
@@ -734,8 +734,8 @@
             dst[2*i] += SHR32(MULT16_16(QCONST16(.70711f,15), FLOAT2INT16(float_src[i*channels+c])),3+15);
             dst[2*i+1] += SHR32(MULT16_16(QCONST16(.70711f,15), FLOAT2INT16(float_src[i*channels+c])),3+15);
 #else
-            dst[2*i] += .707*float_src[i*channels+c];
-            dst[2*i+1] += .707*float_src[i*channels+c];
+            dst[2*i] += .707f*float_src[i*channels+c];
+            dst[2*i+1] += .707f*float_src[i*channels+c];
 #endif
          }
       }