Skip to content

Commit

Permalink
Fixed MSVC implicit conversion warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
GamesTrap committed Sep 24, 2023
1 parent 345cf52 commit 6b620db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/gcem_incl/atan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit 6b620db

Please sign in to comment.