From 3f00059bebad0220ac79b40a6b45d785f4baabfa Mon Sep 17 00:00:00 2001 From: Adam Cogdell Date: Thu, 5 Jun 2025 22:27:35 +0000 Subject: [PATCH] Fix fuzzer range error for scalar parity check. --- unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h index 5f95fd0ca..1c3ce8738 100644 --- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h @@ -1455,7 +1455,7 @@ struct zeta_impl { if (q <= zero) { if (q == numext::floor(q)) { - if (x == numext::floor(x) && long(x) % 2 == 0) { + if (numext::rint(Scalar(0.5) * x) == Scalar(0.5) * x) { return maxnum; } else { return nan;