aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Antonio Sanchez <cantonios@google.com>2020-11-17 08:24:58 -0800
committerGravatar Antonio Sanchez <cantonios@google.com>2020-11-17 08:29:33 -0800
commit117a4c061726cf2100416ce38d6b58b64c663985 (patch)
treeb1a364f57cbedeb69e74cace4bb61da1c3115485
parent394f564055f3723ead6dd45fdb9013ea77f8f6ad (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.h2
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