diff --git a/include/boost/math/special_functions/trunc.hpp b/include/boost/math/special_functions/trunc.hpp index 4ccec3aac..f1702aea1 100644 --- a/include/boost/math/special_functions/trunc.hpp +++ b/include/boost/math/special_functions/trunc.hpp @@ -44,7 +44,7 @@ inline int itrunc(const T& v, const Policy& pol) BOOST_MATH_STD_USING T r = boost::math::trunc(v, pol); if(fabs(r) > (std::numeric_limits::max)()) - return static_cast(policies::raise_rounding_error("boost::math::itrunc<%1%>(%1%)", 0, 0, v, pol)); + return static_cast(policies::raise_rounding_error("boost::math::itrunc<%1%>(%1%)", 0, v, 0, pol)); return static_cast(r); } template @@ -59,7 +59,7 @@ inline long ltrunc(const T& v, const Policy& pol) BOOST_MATH_STD_USING T r = boost::math::trunc(v, pol); if(fabs(r) > (std::numeric_limits::max)()) - return static_cast(policies::raise_rounding_error("boost::math::ltrunc<%1%>(%1%)", 0, 0L, v, pol)); + return static_cast(policies::raise_rounding_error("boost::math::ltrunc<%1%>(%1%)", 0, v, 0L, pol)); return static_cast(r); } template