2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-28 07:22:12 +00:00

Fix buggy last commit.

[SVN r83808]
This commit is contained in:
John Maddock
2013-04-08 12:04:26 +00:00
parent 8428c7ace4
commit 7f885fda28

View File

@@ -119,7 +119,7 @@ std::complex<T> 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>()));
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>())