2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-24 18:12:09 +00:00

Silence incredibly verbose -Wsign-compare warning emitted from gcc 8.

This commit is contained in:
Nick Thompson
2018-11-12 11:51:54 -07:00
parent 26b30a36c7
commit b306f54bee

View File

@@ -127,7 +127,7 @@
integer_part -= (boost::math::lltrunc(ceil(b)) - 1);
}
if (-integer_part > policies::get_max_series_iterations<Policy>())
if (-integer_part > static_cast<boost::intmax_t>(policies::get_max_series_iterations<Policy>()))
return policies::raise_evaluation_error<T>(function, "1F1 arguments sit in a range with a so negative that we have no evaluation method, got a = %1%", std::numeric_limits<T>::quiet_NaN(), pol);
T first = detail::hypergeometric_1F1_imp(ak, b, z, pol);