diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 3b3640661..e54618bf0 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -254,7 +254,7 @@ inline long double ei_pow(long double x, long double y) { return std::pow(x, y) template<> inline long double ei_random(long double a, long double b) { - return static_cast(ei_random(a,b)); + return ei_random(static_cast(a),static_cast(b)); } template<> inline long double ei_random() {