]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix compilation error on 32bit platforms
authorvsr <vsr@opencascade.com>
Thu, 24 Oct 2013 05:25:04 +0000 (05:25 +0000)
committervsr <vsr@opencascade.com>
Thu, 24 Oct 2013 05:25:04 +0000 (05:25 +0000)
src/GEOMGUI/GEOM_Displayer.cxx
src/GEOM_I/GEOM_ITransformOperations_i.cc

index f917a2f0ec46c46bacfaa408209499ca4494553d..a3e7de10c031f0ec63c6a266e28fb01db3195121 100644 (file)
@@ -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 )
index 582f2ddbe349394b559bc19003486db234700286..e6ed96e05932d083f1b039214c6db1b2089edc70 100644 (file)
@@ -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;