Fix compilation error on 32bit platforms

This commit is contained in:
vsr 2013-10-24 05:25:04 +00:00
parent 54779d6c21
commit 6d55c284bf
2 changed files with 6 additions and 3 deletions

View 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 )

View 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;