From: vsr Date: Thu, 24 Oct 2013 05:25:04 +0000 (+0000) Subject: Fix compilation error on 32bit platforms X-Git-Tag: BR_hydro_v_0_3_1~64 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6d55c284bfb89bf230681584338a81a512ef7a75;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 f917a2f0e..a3e7de10c 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 << (long)aValues[i]; + aFieldStepData << (qlonglong)aValues[i]; } } else if( aFieldDataType == GEOM::FDT_Double ) diff --git a/src/GEOM_I/GEOM_ITransformOperations_i.cc b/src/GEOM_I/GEOM_ITransformOperations_i.cc index 582f2ddbe..e6ed96e05 100644 --- a/src/GEOM_I/GEOM_ITransformOperations_i.cc +++ b/src/GEOM_I/GEOM_ITransformOperations_i.cc @@ -715,11 +715,14 @@ CORBA::Double GEOM_ITransformOperations_i::ProjectPointOnWire } Handle(GEOM_Object) aPointOnEdge; + Standard_Integer anEdgeIndex; CORBA::Double aResult = GetOperations()->ProjectPointOnWire - (aPoint, aWire, aPointOnEdge, theEdgeInWireIndex); + (aPoint, aWire, aPointOnEdge, anEdgeIndex); if (!aPointOnEdge.IsNull()) { - thePointOnEdge = GetObject(aPointOnEdge); + GEOM::GEOM_Object_var obj = GetObject(aPointOnEdge); + thePointOnEdge = obj.out(); + theEdgeInWireIndex = anEdgeIndex; } return aResult;