2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Merge pull request #967 from mborland/warnings

Fix -Wmaybe-uninitialized in bessel jy series
This commit is contained in:
Matt Borland
2023-03-10 17:56:15 -08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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>();
}

View File

@@ -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>();
}