From 67bb41f39bdbf3628a84b40843e08157744cdca9 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 28 Apr 2009 13:36:24 +0000 Subject: [PATCH] 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 --- deal.II/base/source/data_out_base.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5