From: vsr Date: Thu, 24 Oct 2013 04:57:31 +0000 (+0000) Subject: Fix compilation error on 32bit platforms X-Git-Tag: BR_hydro_v_0_3_1~65 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=54779d6c210a799440c167663f1a41bf541aa5f6;p=modules%2Fgeom.git Fix compilation error on 32bit platforms --- 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 )