]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use an unsigned int iterator variable.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Feb 2013 15:19:50 +0000 (15:19 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 12 Feb 2013 15:19:50 +0000 (15:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@28324 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/chunk_sparsity_pattern.cc

index 49fd1bc3a5b78cf04d2f29d7c880c68ac8d30712..8ead11c07947ae6bb5f8ae79cf1f2d422c851700 100644 (file)
@@ -487,7 +487,7 @@ ChunkSparsityPattern::n_nonzero_elements () const
          // rather than all elements
          unsigned int n = 0;
 
-         for (int row = 0; row < n_rows(); ++row)
+         for (unsigned int row = 0; row < n_rows(); ++row)
            {
              SparsityPattern::const_iterator p = sparsity_pattern.begin(row);
              for (; p!=sparsity_pattern.end(row); ++p)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.