diff options
author | Antonio Sanchez <cantonios@google.com> | 2021-01-12 10:33:15 -0800 |
---|---|---|
committer | Antonio Sanchez <cantonios@google.com> | 2021-01-12 10:33:15 -0800 |
commit | 352f1422d3ceea19a04cab297c6339e0870e1c6c (patch) | |
tree | 37de244070e2c48473bdb1273e848be4b1464e03 /Eigen/src/Core/MathFunctionsImpl.h | |
parent | 20440849794789eb9d9d29bc834296ce0e73b05c (diff) |
Remove `inf` local variable.
Apparently `inf` is a macro on iOS for `std::numeric_limits<T>::infinity()`,
causing a compile error here. We don't need the local anyways since it's
only used in one spot.
Diffstat (limited to 'Eigen/src/Core/MathFunctionsImpl.h')
-rw-r--r-- | Eigen/src/Core/MathFunctionsImpl.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Eigen/src/Core/MathFunctionsImpl.h b/Eigen/src/Core/MathFunctionsImpl.h index 8ecddebf6..9222285b4 100644 --- a/Eigen/src/Core/MathFunctionsImpl.h +++ b/Eigen/src/Core/MathFunctionsImpl.h @@ -132,8 +132,7 @@ EIGEN_DEVICE_FUNC std::complex<T> complex_sqrt(const std::complex<T>& z) { // Special case of isinf(y) if ((numext::isinf)(y)) { - const T inf = std::numeric_limits<T>::infinity(); - return std::complex<T>(inf, y); + return std::complex<T>(std::numeric_limits<T>::infinity(), y); } T w = numext::sqrt(cst_half * (numext::abs(x) + numext::abs(z))); |