mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-27 15:22:00 +08:00
Fix implicit cast to double.
Triggers `-Wimplicit-float-conversion`, causing a bunch of build errors in Google due to `-Wall`.
This commit is contained in:
parent
55967f87d1
commit
5dc2fbabee
@ -253,10 +253,10 @@ Packet plog_impl_double(const Packet _x)
|
|||||||
|
|
||||||
// Add the logarithm of the exponent back to the result of the interpolation.
|
// Add the logarithm of the exponent back to the result of the interpolation.
|
||||||
if (base2) {
|
if (base2) {
|
||||||
const Packet cst_log2e = pset1<Packet>(EIGEN_LOG2E);
|
const Packet cst_log2e = pset1<Packet>(static_cast<double>(EIGEN_LOG2E));
|
||||||
x = pmadd(x, cst_log2e, e);
|
x = pmadd(x, cst_log2e, e);
|
||||||
} else {
|
} else {
|
||||||
const Packet cst_ln2 = pset1<Packet>(EIGEN_LN2);
|
const Packet cst_ln2 = pset1<Packet>(static_cast<double>(EIGEN_LN2));
|
||||||
x = pmadd(e, cst_ln2, x);
|
x = pmadd(e, cst_ln2, x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user