From e1bf26bb6013963f5ea1f62219fe20b9b94ffb46 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 8 Nov 2010 14:51:14 +0000 Subject: [PATCH] Do rounding explicitly. git-svn-id: https://svn.dealii.org/trunk@22633 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/lapack_full_matrix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.5