Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83808 - trunk/boost/math/special_functions
From: john_at_[hidden]
Date: 2013-04-08 08:04:27


Author: johnmaddock
Date: 2013-04-08 08:04:26 EDT (Mon, 08 Apr 2013)
New Revision: 83808
URL: http://svn.boost.org/trac/boost/changeset/83808

Log:
Fix buggy last commit.
Text files modified:
   trunk/boost/math/special_functions/spherical_harmonic.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/math/special_functions/spherical_harmonic.hpp
==============================================================================
--- trunk/boost/math/special_functions/spherical_harmonic.hpp (original)
+++ trunk/boost/math/special_functions/spherical_harmonic.hpp 2013-04-08 08:04:26 EDT (Mon, 08 Apr 2013)
@@ -119,7 +119,7 @@
    if(m&1)
    {
       // Check phase if theta is outside [0, PI]:
- U mod = boost::math::tools::fmod_workaround(theta, T(2 * constants::pi<U>()));
+ U mod = boost::math::tools::fmod_workaround(theta, U(2 * constants::pi<U>()));
       if(mod < 0)
          mod += 2 * constants::pi<U>();
       if(mod > constants::pi<U>())


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