]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Replace two old-style-casts by static_casts
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 28 Oct 1999 12:00:19 +0000 (12:00 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 28 Oct 1999 12:00:19 +0000 (12:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@1801 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/sparse_matrix.templates.h

index 83c09496244c786f1f49177a96da6575127f774c..503c9d0a3d4652a15246a6e56eaf520106c8138e 100644 (file)
@@ -764,7 +764,7 @@ SparseMatrix<number>::SOR (Vector<somenumber>& dst, const number om) const
     {
       somenumber s = dst(row);
       for (unsigned int j=cols->rowstart[row]; j<cols->rowstart[row+1]; ++j)
-       if ((unsigned int)cols->colnums[j] < row)
+       if (static_cast<unsigned int>(cols->colnums[j]) < row)
          s -= val[j] * dst(cols->colnums[j]);
 
       dst(row) = s * om / val[cols->rowstart[row]];
@@ -870,7 +870,7 @@ SparseMatrix<number>::SSOR (Vector<somenumber>& dst, const number om) const
          p = cols->colnums[j];
          if (p>=0)
            {
-             if ((unsigned int)i<j) s += val[j] * dst(p);
+             if (static_cast<unsigned int>(i)<j) s += val[j] * dst(p);
            }
        }
       dst(i) -= s * om / val[cols->rowstart[i]];

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.