]> https://gitweb.dealii.org/ - dealii.git/commitdiff
The culprit *was* this line, but the patch from v1.2 to v1.3 was
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 11 Feb 2000 08:27:49 +0000 (08:27 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 11 Feb 2000 08:27:49 +0000 (08:27 +0000)
wrong: one should write `signed' when one means so, not `unsigned'.

git-svn-id: https://svn.dealii.org/trunk@2380 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparsity_pattern.cc

index 09170a04590f749389a08547e18c9c0be0aa9195..ef74fb9cd6cd03d17f07dd3fcc3fa794295d6c9f 100644 (file)
@@ -534,7 +534,7 @@ SparsityPattern::print_gnuplot (ostream &out) const
   for (unsigned int i=0; i<rows; ++i)
     for (unsigned int j=rowstart[i]; j<rowstart[i+1]; ++j)
       if (colnums[j] != invalid_entry)
-       out << i << " " << -colnums[j] << endl;
+       out << i << " " << -static_cast<int>(colnums[j]) << endl;
 
   AssertThrow (out, ExcIO());
 }
@@ -551,7 +551,7 @@ SparsityPattern::bandwidth () const
       if (colnums[j] != invalid_entry)
        {
          if (static_cast<unsigned int>(abs(static_cast<int>(i-colnums[j]))) > b)
-           b = abs(static_cast<int>(i-colnums[j]));
+           b = abs(static_cast<signed int>(i-colnums[j]));
        }
       else
                                         // leave if at the end of

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.