From: Luca Heltai Date: Sun, 28 Feb 2016 23:23:18 +0000 (+0100) Subject: Merge pull request #2263 from drwells/avoid-c-style-casts X-Git-Tag: v8.5.0-rc1~1268 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3f2eebdcdd83e55147dd5e1bbf0614e51007da0;p=dealii.git Merge pull request #2263 from drwells/avoid-c-style-casts Get rid of a C-style cast. --- b3f2eebdcdd83e55147dd5e1bbf0614e51007da0 diff --cc source/lac/lapack_full_matrix.cc index c6f79ba36c,0a2440dcd7..270f8bae8b --- a/source/lac/lapack_full_matrix.cc +++ b/source/lac/lapack_full_matrix.cc @@@ -901,12 -899,11 +901,12 @@@ LAPACKFullMatrix::compute_gener // sygv returns info=0 on success. Since we only queried the optimal size // for work, everything else would not be acceptable. Assert (info == 0, ExcInternalError()); - // Allocate working array according to suggestion. - lwork = boost::math::iround(work[0]); + // Allocate working array according to suggestion (same strategy as was + // noted in compute_svd). + lwork = static_cast(work[0] + 1); // resize workspace array - work.resize((size_type) lwork); + work.resize(static_cast(lwork)); // Finally compute the generalized eigenvalues. sygv (&itype, jobz, uplo, &nn, values_A, &nn,