From 7f885fda287bb46dfc2b89532f7a88cbceb7c683 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Mon, 8 Apr 2013 12:04:26 +0000 Subject: [PATCH] Fix buggy last commit. [SVN r83808] --- include/boost/math/special_functions/spherical_harmonic.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/math/special_functions/spherical_harmonic.hpp b/include/boost/math/special_functions/spherical_harmonic.hpp index 254626495..73513aeb6 100644 --- a/include/boost/math/special_functions/spherical_harmonic.hpp +++ b/include/boost/math/special_functions/spherical_harmonic.hpp @@ -119,7 +119,7 @@ std::complex spherical_harmonic(unsigned n, int m, U theta, U phi, const Poli if(m&1) { // Check phase if theta is outside [0, PI]: - U mod = boost::math::tools::fmod_workaround(theta, T(2 * constants::pi())); + U mod = boost::math::tools::fmod_workaround(theta, U(2 * constants::pi())); if(mod < 0) mod += 2 * constants::pi(); if(mod > constants::pi())