diff options
author | Marcus Asteborg <maastebo@microsoft.com> | 2022-07-12 11:12:21 +0300 |
---|---|---|
committer | Mark Harris <mark.hsj@gmail.com> | 2022-07-13 06:29:32 +0300 |
commit | e4a74ddeb9788eab84d10660e958fe706619892f (patch) | |
tree | ee9735e399f3d31da6f18175f0a89d3e31dbde43 | |
parent | 243987518a65218ffe5cf260756cbf66583a9bb4 (diff) |
Silence MSVC C4244 warning
When building with FLOAT_APPROX.
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
-rw-r--r-- | celt/mathops.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |