From 6b620db6c9ffd85061e3ae56516636dab4855ef5 Mon Sep 17 00:00:00 2001 From: GamesTrap Date: Sun, 24 Sep 2023 19:00:33 +0200 Subject: [PATCH] Fixed MSVC implicit conversion warnings --- include/gcem_incl/atan.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gcem_incl/atan.hpp b/include/gcem_incl/atan.hpp index d2b7936..95f7c9e 100644 --- a/include/gcem_incl/atan.hpp +++ b/include/gcem_incl/atan.hpp @@ -83,9 +83,9 @@ atan_series_order(const T x, const T x_pow, const uint_t order, const uint_t max noexcept { return( max_order == 1 ? \ - GCEM_HALF_PI - T(1)/x : + T(GCEM_HALF_PI) - T(1)/x : order == 1 ? \ - GCEM_HALF_PI - T(1)/x + atan_series_order(x*x,pow(x,3),order+1,max_order) : + T(GCEM_HALF_PI) - T(1)/x + atan_series_order(x*x,pow(x,3),order+1,max_order) : // NOTE: x changes to x*x for order > 1 order < max_order ? \ atan_series_order_calc(x,x_pow,order) \