Fixes MSVC warnings
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Sat, 13 Jul 2013 02:59:29 +0000 (22:59 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Sat, 13 Jul 2013 02:59:29 +0000 (22:59 -0400)
src/opus_multistream_encoder.c

index 6f3eb53..2877284 100644 (file)
@@ -734,8 +734,8 @@ static void opus_surround_downmix_float(
             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
          }
       }