From 6d55c284bfb89bf230681584338a81a512ef7a75 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 24 Oct 2013 05:25:04 +0000 Subject: [PATCH] Fix compilation error on 32bit platforms --- src/GEOMGUI/GEOM_Displayer.cxx | 2 +- src/GEOM_I/GEOM_ITransformOperations_i.cc | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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; -- 2.39.2