ref: e4a74ddeb9788eab84d10660e958fe706619892f
parent: 243987518a65218ffe5cf260756cbf66583a9bb4
author: Marcus Asteborg <maastebo@microsoft.com>
date: Tue Jul 12 06:12:21 EDT 2022
Silence MSVC C4244 warning When building with FLOAT_APPROX. Signed-off-by: Mark Harris <mark.hsj@gmail.com>
--- a/celt/mathops.h
+++ b/celt/mathops.h
@@ -153,7 +153,7 @@
float f;
opus_uint32 i;
} res;
- integer = floor(x);
+ integer = (int)floor(x);
if (integer < -50)
return 0;
frac = x-integer;