Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74184 - trunk/boost/math/special_functions
From: john_at_[hidden]
Date: 2011-09-01 13:47:02


Author: johnmaddock
Date: 2011-09-01 13:47:01 EDT (Thu, 01 Sep 2011)
New Revision: 74184
URL: http://svn.boost.org/trac/boost/changeset/74184

Log:
Fix error handling arguments.
Text files modified:
   trunk/boost/math/special_functions/trunc.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/math/special_functions/trunc.hpp
==============================================================================
--- trunk/boost/math/special_functions/trunc.hpp (original)
+++ trunk/boost/math/special_functions/trunc.hpp 2011-09-01 13:47:01 EDT (Thu, 01 Sep 2011)
@@ -44,7 +44,7 @@
    BOOST_MATH_STD_USING
    T r = boost::math::trunc(v, pol);
    if(fabs(r) > (std::numeric_limits<int>::max)())
- return static_cast<int>(policies::raise_rounding_error("boost::math::itrunc<%1%>(%1%)", 0, 0, v, pol));
+ return static_cast<int>(policies::raise_rounding_error("boost::math::itrunc<%1%>(%1%)", 0, v, 0, pol));
    return static_cast<int>(r);
 }
 template <class T>
@@ -59,7 +59,7 @@
    BOOST_MATH_STD_USING
    T r = boost::math::trunc(v, pol);
    if(fabs(r) > (std::numeric_limits<long>::max)())
- return static_cast<long>(policies::raise_rounding_error("boost::math::ltrunc<%1%>(%1%)", 0, 0L, v, pol));
+ return static_cast<long>(policies::raise_rounding_error("boost::math::ltrunc<%1%>(%1%)", 0, v, 0L, pol));
    return static_cast<long>(r);
 }
 template <class T>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk