From 2e4e4cb74de19de0997567a4d058d1522ec7e452 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 23 Mar 2016 16:57:12 -0700 Subject: [PATCH] Use numext::abs instead of abs to avoid incorrect conversion to integer of the argument --- Eigen/src/Core/SpecialFunctions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/SpecialFunctions.h b/Eigen/src/Core/SpecialFunctions.h index c12e41a7b..37ebb5915 100644 --- a/Eigen/src/Core/SpecialFunctions.h +++ b/Eigen/src/Core/SpecialFunctions.h @@ -576,7 +576,7 @@ struct igammac_impl { pkm1 = pk; qkm2 = qkm1; qkm1 = qk; - if (abs(pk) > big) { + if (numext::abs(pk) > big) { pkm2 *= biginv; pkm1 *= biginv; qkm2 *= biginv;