mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Enable and fix -Wdouble-conversion warnings
This commit is contained in:
@@ -394,7 +394,7 @@ namespace Eigen
|
||||
|
||||
Matrix<Scalar,Order,Order> ndu(p+1,p+1);
|
||||
|
||||
double saved, temp;
|
||||
Scalar saved, temp; // FIXME These were double instead of Scalar. Was there a reason for that?
|
||||
|
||||
ndu(0,0) = 1.0;
|
||||
|
||||
@@ -433,7 +433,7 @@ namespace Eigen
|
||||
// Compute the k-th derivative
|
||||
for (DenseIndex k=1; k<=static_cast<DenseIndex>(n); ++k)
|
||||
{
|
||||
double d = 0.0;
|
||||
Scalar d = 0.0;
|
||||
DenseIndex rk,pk,j1,j2;
|
||||
rk = r-k; pk = p-k;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user