From fa64b1fd6d48165d1e028d1ec96174c3b7fc6341 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 14 Sep 2019 10:59:02 -0700 Subject: Fix implicit conversions in the effects --- alc/effects/fshifter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/effects/fshifter.cpp') diff --git a/alc/effects/fshifter.cpp b/alc/effects/fshifter.cpp index 351b138f..c015831c 100644 --- a/alc/effects/fshifter.cpp +++ b/alc/effects/fshifter.cpp @@ -49,9 +49,9 @@ std::array InitHannWindow() { std::array ret; /* Create lookup table of the Hann window for the desired size, i.e. HIL_SIZE */ - for(ALsizei i{0};i < HIL_SIZE>>1;i++) + for(size_t i{0};i < HIL_SIZE>>1;i++) { - ALdouble val = std::sin(al::MathDefs::Pi() * i / ALdouble{HIL_SIZE-1}); + const double val{std::sin(al::MathDefs::Pi() * i / double{HIL_SIZE-1})}; ret[i] = ret[HIL_SIZE-1-i] = val * val; } return ret; -- cgit v1.2.3