From 4a279bc47570f0181440dfa8ddbafde62e589290 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 2 May 2024 19:16:50 +0100 Subject: [PATCH] Change literal type to floats. --- include/boost/math/special_functions/ellint_1.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/math/special_functions/ellint_1.hpp b/include/boost/math/special_functions/ellint_1.hpp index 86aaf2416..6eeb4761c 100644 --- a/include/boost/math/special_functions/ellint_1.hpp +++ b/include/boost/math/special_functions/ellint_1.hpp @@ -125,7 +125,7 @@ T ellint_f_imp(T phi, T k, const Policy& pol, T one_minus_k2) T c_minus_one = cosp / sinp; T cross = fabs(c / (k * k)); T arg2; - if ((cross > 0.9) && (cross < 1.1)) + if ((cross > 0.9f) && (cross < 1.1f)) arg2 = c_minus_one + one_minus_k2; else arg2 = c - k * k;