From e4a74ddeb9788eab84d10660e958fe706619892f Mon Sep 17 00:00:00 2001 From: Marcus Asteborg <maastebo@microsoft.com> Date: Tue, 12 Jul 2022 10:12:21 +0200 Subject: [PATCH] Silence MSVC C4244 warning When building with FLOAT_APPROX. Signed-off-by: Mark Harris <mark.hsj@gmail.com> --- celt/mathops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/celt/mathops.h b/celt/mathops.h index fe29dac1c..478ac9187 100644 --- a/celt/mathops.h +++ b/celt/mathops.h @@ -153,7 +153,7 @@ static OPUS_INLINE float celt_exp2(float x) float f; opus_uint32 i; } res; - integer = floor(x); + integer = (int)floor(x); if (integer < -50) return 0; frac = x-integer; -- GitLab