]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix problem with -unsigned
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 10 Feb 2000 17:07:08 +0000 (17:07 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 10 Feb 2000 17:07:08 +0000 (17:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@2376 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/sparsity_pattern.cc

index 09170a04590f749389a08547e18c9c0be0aa9195..a23839bcfee0f0ebfaa3fda6e4ceddd6da9e6051 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<unsigned int>(colnums[j]) << endl;
 
   AssertThrow (out, ExcIO());
 }

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.