Silence MSVC C4244 warning

When building with FLOAT_APPROX.

Signed-off-by: Mark Harris <mark.hsj@gmail.com>
This commit is contained in:
Marcus Asteborg 2022-07-12 10:12:21 +02:00 committed by Mark Harris
parent 243987518a
commit e4a74ddeb9
No known key found for this signature in database
GPG key ID: 92293B4D0118BDB0

View file

@ -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;