Skip to content

Commit

Permalink
Merge pull request #967 from mborland/warnings
Browse files Browse the repository at this point in the history
Fix -Wmaybe-uninitialized in bessel jy series
  • Loading branch information
mborland authored Mar 11, 2023
2 parents a619c3c + 1f94d98 commit 5376689
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ inline T bessel_y_derivative_small_z_series(T v, T x, const Policy& pol)
}
else
{
int sgn;
int sgn {};
prefix = boost::math::lgamma(-v, &sgn, pol) + (v - 1) * log(x / 2) - constants::ln_two<T>();
prefix = exp(prefix) * sgn / boost::math::constants::pi<T>();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ inline T bessel_y_small_z_series(T v, T x, T* pscale, const Policy& pol)
}
else
{
int sgn;
int sgn {};
prefix = boost::math::lgamma(-v, &sgn, pol) + p;
prefix = exp(prefix) * sgn / constants::pi<T>();
}
Expand Down

0 comments on commit 5376689

Please sign in to comment.