Skip to content

Commit

Permalink
Fix -Wmaybe-uninitialized in bessel jy series
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Mar 10, 2023
1 parent a619c3c commit 1f94d98
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 1f94d98

Please sign in to comment.