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:
@@ -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>();
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user