Skip to content

Commit

Permalink
Merge pull request #38 from GamesTrap/fix_implicit_warnings
Browse files Browse the repository at this point in the history
Fixed MSVC implicit conversion warnings
  • Loading branch information
kthohr authored Apr 28, 2024
2 parents 7ececcc + 6b620db commit 012ae73
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 012ae73

Please sign in to comment.