From 54779d6c210a799440c167663f1a41bf541aa5f6 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 24 Oct 2013 04:57:31 +0000 Subject: [PATCH] Fix compilation error on 32bit platforms --- src/GEOMGUI/GEOM_Displayer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index 9e59ce7e2..f917a2f0e 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -2229,7 +2229,7 @@ void GEOM_Displayer::readFieldStepInfo( GEOM::GEOM_FieldStep_var theGeomFieldSte { GEOM::ListOfLong_var aValues = aGeomIntFieldStep->GetValues(); for( size_t i = 0, n = aValues->length(); i < n; i++ ) - aFieldStepData << aValues[i]; + aFieldStepData << (long)aValues[i]; } } else if( aFieldDataType == GEOM::FDT_Double ) @@ -2239,7 +2239,7 @@ void GEOM_Displayer::readFieldStepInfo( GEOM::GEOM_FieldStep_var theGeomFieldSte { GEOM::ListOfDouble_var aValues = aGeomDoubleFieldStep->GetValues(); for( size_t i = 0, n = aValues->length(); i < n; i++ ) - aFieldStepData << aValues[i]; + aFieldStepData << (double)aValues[i]; } } else if( aFieldDataType == GEOM::FDT_String ) -- 2.39.2