2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-25 04:22:15 +00:00

Correct concept failures.

This commit is contained in:
jzmaddock
2022-11-25 19:51:00 +00:00
parent 18fd65aaa1
commit c6fccc286e
3 changed files with 6 additions and 2 deletions

View File

@@ -26,7 +26,6 @@ inline T powm1_imp(const T x, const T y, const Policy& pol)
{
BOOST_MATH_STD_USING
static const char* function = "boost::math::powm1<%1%>(%1%, %1%)";
if (x > 0)
{
if ((fabs(y * (x - 1)) < 0.5) || (fabs(y) < 0.2))
@@ -41,7 +40,7 @@ inline T powm1_imp(const T x, const T y, const Policy& pol)
// fall through....
}
}
else if (boost::math::signbit(x)) // Need to error check -0 here as well
else if ((boost::math::signbit)(x)) // Need to error check -0 here as well
{
// y had better be an integer:
if (boost::math::trunc(y) != y)