diff options
author | Gael Guennebaud <g.gael@free.fr> | 2018-04-03 14:19:04 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2018-04-03 14:19:04 +0200 |
commit | 67bac6368cc6cdf6c1f420c53cff73878b3d86db (patch) | |
tree | 68a596292cd02cc628ebd4d2eca9a91227630ef3 /unsupported/Eigen/src | |
parent | d43b2f01f48d67507b921b8f9ee1fca071ac2ee2 (diff) |
protect calls to isnan
Diffstat (limited to 'unsupported/Eigen/src')
-rw-r--r-- | unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h index 7deca3e12..97b2e5a91 100644 --- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h @@ -535,7 +535,7 @@ struct igammac_impl { return nan; } - if (numext::isnan(a) || numext::isnan(x)) { // propagate nans + if ((numext::isnan)(a) || (numext::isnan)(x)) { // propagate nans return nan; } @@ -728,7 +728,7 @@ struct igamma_impl { return nan; } - if (numext::isnan(a) || numext::isnan(x)) { // propagate nans + if ((numext::isnan)(a) || (numext::isnan)(x)) { // propagate nans return nan; } |