From: wolf Date: Thu, 28 Oct 1999 12:00:19 +0000 (+0000) Subject: Replace two old-style-casts by static_casts X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0437267123c9d43aee8a2623fce29386555d72a1;p=dealii-svn.git Replace two old-style-casts by static_casts git-svn-id: https://svn.dealii.org/trunk@1801 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/sparse_matrix.templates.h b/deal.II/lac/include/lac/sparse_matrix.templates.h index 83c0949624..503c9d0a3d 100644 --- a/deal.II/lac/include/lac/sparse_matrix.templates.h +++ b/deal.II/lac/include/lac/sparse_matrix.templates.h @@ -764,7 +764,7 @@ SparseMatrix::SOR (Vector& dst, const number om) const { somenumber s = dst(row); for (unsigned int j=cols->rowstart[row]; jrowstart[row+1]; ++j) - if ((unsigned int)cols->colnums[j] < row) + if (static_cast(cols->colnums[j]) < row) s -= val[j] * dst(cols->colnums[j]); dst(row) = s * om / val[cols->rowstart[row]]; @@ -870,7 +870,7 @@ SparseMatrix::SSOR (Vector& dst, const number om) const p = cols->colnums[j]; if (p>=0) { - if ((unsigned int)i(i)rowstart[i]];