commit | 3f00059bebad0220ac79b40a6b45d785f4baabfa | [log] [tgz] |
---|---|---|
author | Adam Cogdell <adamcogdell@google.com> | Thu Jun 05 22:27:35 2025 +0000 |
committer | Rasmus Munk Larsen <rmlarsen@google.com> | Thu Jun 05 22:27:35 2025 +0000 |
tree | 55aaa2c018baa357a86f1bca6a26b287d6342511 | |
parent | 21e89b930c6af56dbdaeea2a91d8b9d6fd2c208a [diff] |
Fix fuzzer range error for scalar parity check.
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h index 5f95fd0..1c3ce87 100644 --- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h +++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -1455,7 +1455,7 @@ 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;