static cast to force Eigen::Index to long conversion.

Change-Id: I11945c455eb3fef9bfb952f5a30d657542fbccae
This commit is contained in:
Sameer Agarwal
2012-10-30 17:41:50 -07:00
parent 12626e8cba
commit 3dadfb78b7
@@ -154,8 +154,8 @@ class GradientCheckingCostFunction : public CostFunction {
"Jacobian for " "block %d: (%ld by %ld)) "
"==========\n",
k,
term_jacobians[k].rows(),
term_jacobians[k].cols());
static_cast<long>(term_jacobians[k].rows()),
static_cast<long>(term_jacobians[k].cols()));
// The funny spacing creates appropriately aligned column headers.
m += " block row col user dx/dy num diff dx/dy "
"abs error relative error parameter residual\n";