diff options
author | Antonio Sanchez <cantonios@google.com> | 2020-11-17 08:24:58 -0800 |
---|---|---|
committer | Antonio Sanchez <cantonios@google.com> | 2020-11-17 08:29:33 -0800 |
commit | 117a4c061726cf2100416ce38d6b58b64c663985 (patch) | |
tree | b1a364f57cbedeb69e74cace4bb61da1c3115485 | |
parent | 394f564055f3723ead6dd45fdb9013ea77f8f6ad (diff) |
Fix missing `EIGEN_CONSTEXPR` pop_macro in `Half`.
`EIGEN_CONSTEXPR` is getting pushed but not popped in `Half.h` if
`EIGEN_HAS_ARM64_FP16_SCALAR_ARITHMETIC` is defined.
-rw-r--r-- | Eigen/src/Core/arch/Default/Half.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/arch/Default/Half.h b/Eigen/src/Core/arch/Default/Half.h index bf408149a..0bc1e9d19 100644 --- a/Eigen/src/Core/arch/Default/Half.h +++ b/Eigen/src/Core/arch/Default/Half.h @@ -774,7 +774,7 @@ template<> struct NumTraits<Eigen::half> } // end namespace Eigen -#if defined(EIGEN_HAS_GPU_FP16) +#if defined(EIGEN_HAS_GPU_FP16) || defined(EIGEN_HAS_ARM64_FP16_SCALAR_ARITHMETIC) #pragma pop_macro("EIGEN_CONSTEXPR") #endif |