mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-19 19:34:29 +08:00
Fix fuzzer range error for scalar parity check.
This commit is contained in:
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user