From: bangerth Date: Mon, 8 Nov 2010 14:51:14 +0000 (+0000) Subject: Do rounding explicitly. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6dbd6a438af668b66ceaf7d5d660c221fda6c98;p=dealii-svn.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));