]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a really annoying problem introduced by including cstdlib: This bought us an...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Feb 1999 12:14:22 +0000 (12:14 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Feb 1999 12:14:22 +0000 (12:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@789 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/dsmatrix.cc

index cc1925ef70b9c9af3be9566e62bc4bdd88c8e7ed..16ec70d8f776ff4a45769dec06a78f9709036812 100644 (file)
@@ -346,8 +346,8 @@ dSMatrixStruct::bandwidth () const
     for (unsigned int j=rowstart[i]; j<rowstart[i+1]; ++j)
       if (colnums[j]>=0) 
        {
-         if ((unsigned int)abs(i-colnums[j]) > b)
-           b = abs(i-colnums[j]);
+         if (static_cast<unsigned int>(abs(static_cast<int>(i-colnums[j]))) > b)
+           b = abs(static_cast<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.