Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /trunk/core/vnl/io/vnl_io_sparse_matrix.txx [r36650] .. [r36651] Maximize Restore

  Switch to side-by-side view

--- a/trunk/core/vnl/io/vnl_io_sparse_matrix.txx
+++ b/trunk/core/vnl/io/vnl_io_sparse_matrix.txx
@@ -124,9 +124,9 @@
     vsl_b_read(is, n_rows);
     vsl_b_read(is, n_cols);
     // As we cannot resize the matrix, check that it is the correct size.
-    assert (n_rows==(int)p.rows());
-    assert (n_cols==(int)p.columns());
-    for (unsigned i=0;i<n_rows;i++)
+    assert (n_rows==p.rows());
+    assert (n_cols==p.columns());
+    for (unsigned i=0;i<n_rows;++i)
     {
       vsl_b_read(is,row_size);
       indexes.resize(row_size);