mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix fuzzer range error for scalar parity check.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
21e89b930c
commit
3f00059beb
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user