From 77dda6f157303f1bf9b61bc3010010e47bac0ec7 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 16 Aug 2024 09:32:53 +0700 Subject: [PATCH] Fix warning C4701: "potentially uninitialized local variable used" --- include/boost/math/special_functions/detail/bessel_ik.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/math/special_functions/detail/bessel_ik.hpp b/include/boost/math/special_functions/detail/bessel_ik.hpp index 0c653b475..9cc885f4c 100644 --- a/include/boost/math/special_functions/detail/bessel_ik.hpp +++ b/include/boost/math/special_functions/detail/bessel_ik.hpp @@ -334,6 +334,8 @@ int bessel_ik(T v, T x, T* result_I, T* result_K, int kind, const Policy& pol) T eight_z = 8 * x; Kv = 1 + (mu - 1) / eight_z + (mu - 1) * (mu - 9) / (2 * eight_z * eight_z) + (mu - 1) * (mu - 9) * (mu - 25) / (6 * eight_z * eight_z * eight_z); Kv *= exp(-x) * constants::root_pi() / sqrt(2 * x); + n = 0; + u = 0; } else {