diff options
author | 2016-03-23 16:57:12 -0700 | |
---|---|---|
committer | 2016-03-23 16:57:12 -0700 | |
commit | 2e4e4cb74de19de0997567a4d058d1522ec7e452 (patch) | |
tree | 134a10d193838cfcf1b57ff0e6642d5106ae3edf /Eigen | |
parent | 41434a8a852e3f2744164bece0487d7e767717b6 (diff) |
Use numext::abs instead of abs to avoid incorrect conversion to integer of the argument
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/SpecialFunctions.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |