Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78316 - in trunk/boost/math/special_functions: . detail
From: john_at_[hidden]
Date: 2012-05-03 13:20:24


Author: johnmaddock
Date: 2012-05-03 13:20:24 EDT (Thu, 03 May 2012)
New Revision: 78316
URL: http://svn.boost.org/trac/boost/changeset/78316

Log:
Fix a pair of typos (one a clear bug).
Text files modified:
   trunk/boost/math/special_functions/detail/iconv.hpp | 2 +-
   trunk/boost/math/special_functions/lanczos.hpp | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/math/special_functions/detail/iconv.hpp
==============================================================================
--- trunk/boost/math/special_functions/detail/iconv.hpp (original)
+++ trunk/boost/math/special_functions/detail/iconv.hpp 2012-05-03 13:20:24 EDT (Thu, 03 May 2012)
@@ -25,7 +25,7 @@
 inline int iconv_imp(T v, Policy const& pol, mpl::false_ const&)
 {
    BOOST_MATH_STD_USING
- return iround(v);
+ return iround(v, pol);
 }
 
 template <class T, class Policy>

Modified: trunk/boost/math/special_functions/lanczos.hpp
==============================================================================
--- trunk/boost/math/special_functions/lanczos.hpp (original)
+++ trunk/boost/math/special_functions/lanczos.hpp 2012-05-03 13:20:24 EDT (Thu, 03 May 2012)
@@ -423,7 +423,7 @@
          static_cast<T>(BOOST_MATH_BIG_CONSTANT(T, 72, -0.9685385411006641478305219367315965391289e-9)),
       };
       T result = 0;
- T z = z = 2;
+ T z = dz + 2;
       for(unsigned k = 1; k <= sizeof(d)/sizeof(d[0]); ++k)
       {
          result += (-d[k-1]*dz)/(z + k*z + k*k - 1);


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