From: Wolfgang Bangerth Date: Tue, 28 Apr 2009 13:36:24 +0000 (+0000) Subject: Suggestion by Rostislav Khlebnikov: Replace call to C99 function X-Git-Tag: v8.0.0~7734 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67bb41f39bdbf3628a84b40843e08157744cdca9;p=dealii.git Suggestion by Rostislav Khlebnikov: Replace call to C99 function 'rint' with hand-written cast. git-svn-id: https://svn.dealii.org/trunk@18767 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/data_out_base.cc b/deal.II/base/source/data_out_base.cc index ae9161c52f..71c166b609 100644 --- a/deal.II/base/source/data_out_base.cc +++ b/deal.II/base/source/data_out_base.cc @@ -2944,9 +2944,9 @@ void DataOutBase::write_eps (const std::vector > &patches, // lower left corner << "0 0 " // upper right corner - << static_cast( rint((x_max-x_min) * scale )) + << static_cast( (x_max-x_min) * scale + 0.5) << ' ' - << static_cast( rint((y_max-y_min) * scale )) + << static_cast( (y_max-y_min) * scale + 0.5) << '\n'; // define some abbreviations to keep