From e4a74ddeb9788eab84d10660e958fe706619892f Mon Sep 17 00:00:00 2001 From: Marcus Asteborg Date: Tue, 12 Jul 2022 10:12:21 +0200 Subject: Silence MSVC C4244 warning When building with FLOAT_APPROX. Signed-off-by: Mark Harris --- celt/mathops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/celt/mathops.h b/celt/mathops.h index fe29dac1..478ac918 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; -- cgit v1.2.3