From 990c183d8d107e12966ea0f800368f41c5afb213 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 1 Sep 2011 17:47:01 +0000 Subject: [PATCH] Fix error handling arguments. [SVN r74184] --- include/boost/math/special_functions/trunc.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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