mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-20 03:44:26 +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 <= zero) {
|
||||||
if (q == numext::floor(q)) {
|
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;
|
return maxnum;
|
||||||
} else {
|
} else {
|
||||||
return nan;
|
return nan;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user