From 9c7bd807b4f065665715600ec90e34f02207412e Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Thu, 2 Jul 2015 16:10:29 +0100 Subject: [PATCH] Fix ambiguous call to 'pow' in 'Interface2' variation Fixes #8 --- Source/Ember/Variations04.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Ember/Variations04.h b/Source/Ember/Variations04.h index 1877597..e5184d0 100644 --- a/Source/Ember/Variations04.h +++ b/Source/Ember/Variations04.h @@ -3089,7 +3089,7 @@ public: "\n" "real_t Interference2Tri(real_t a, real_t b, real_t c, real_t p, real_t x)\n" "{\n" - " return a * 2 * pow(fabs(asin(cos(b * x + c - M_PI_2))) * M_1_PI, p);\n" + " return a * 2 * pow(fabs(asin(cos(b * x + c - (real_t)M_PI_2))) * (real_t)M_1_PI, p);\n" "}\n" "\n" "real_t Interference2Squ(real_t a, real_t b, real_t c, real_t p, real_t x)\n"