From 46f1e6eb766e3d1d9037b3222c5972dafdb38fba Mon Sep 17 00:00:00 2001 From: Otmane Lahlou <otmane.lahlou@c-s.fr> Date: Tue, 10 Mar 2009 16:49:36 +0100 Subject: [PATCH] ENh : correct otb::Rectangle warnings --- Code/Common/otbRectangle.txx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Code/Common/otbRectangle.txx b/Code/Common/otbRectangle.txx index dafa4d33ac..a938b15670 100644 --- a/Code/Common/otbRectangle.txx +++ b/Code/Common/otbRectangle.txx @@ -137,28 +137,28 @@ Rectangle<TValue> RegionType region; typename RegionType::SizeType size; typename RegionType::IndexType index; - typename RegionType::IndexType maxId; + typename RegionType::IndexType maxId; - size.Fill(0.); - index.Fill(0.); - maxId.Fill(0.); + size.Fill(0); + index.Fill(0); + maxId.Fill(0); VertexListConstIteratorType itCorners = cornersVertex->Begin(); - double x,y; + long int x = 0,y = 0; if ( cornersVertex->Size()>0) { - x = itCorners.Value()[0]; - y = itCorners.Value()[1]; + x = static_cast<long int>(itCorners.Value()[0]); + y = static_cast<long int>(itCorners.Value()[1]); index[0] = x; index[1] = y; ++itCorners; while (itCorners != cornersVertex->End()) { - x = itCorners.Value()[0]; - y = itCorners.Value()[1]; + x = static_cast<long int>(itCorners.Value()[0]); + y = static_cast<long int>(itCorners.Value()[1]); // Index search if ( x < index[0] ) -- GitLab