From: Wolfgang Bangerth Date: Mon, 8 Nov 2010 14:51:14 +0000 (+0000) Subject: Do rounding explicitly. X-Git-Tag: v8.0.0~5024 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1bf26bb6013963f5ea1f62219fe20b9b94ffb46;p=dealii.git Do rounding explicitly. git-svn-id: https://svn.dealii.org/trunk@22633 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/lapack_full_matrix.cc b/deal.II/source/lac/lapack_full_matrix.cc index a8ed9c210d..b38af74153 100644 --- a/deal.II/source/lac/lapack_full_matrix.cc +++ b/deal.II/source/lac/lapack_full_matrix.cc @@ -261,7 +261,7 @@ LAPACKFullMatrix::compute_svd() &work[0], &lwork, &ipiv[0], &info); Assert (info==0, LAPACKSupport::ExcErrorCode("gesdd", info)); // Now resize work array and - lwork = work[0] + .5; + lwork = static_cast(work[0] + .5); #else int lwork = 3*std::min(mm,nn) + std::max(std::max(mm,nn),4*std::min(mm,nn)*std::min(mm,nn)+4*std::min(mm,nn));