mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-09 21:13:07 +05:00
Fix compilation error on 32bit platforms
This commit is contained in:
parent
54779d6c21
commit
6d55c284bf
@ -2229,7 +2229,7 @@ void GEOM_Displayer::readFieldStepInfo( GEOM::GEOM_FieldStep_var theGeomFieldSte
|
|||||||
{
|
{
|
||||||
GEOM::ListOfLong_var aValues = aGeomIntFieldStep->GetValues();
|
GEOM::ListOfLong_var aValues = aGeomIntFieldStep->GetValues();
|
||||||
for( size_t i = 0, n = aValues->length(); i < n; i++ )
|
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 )
|
else if( aFieldDataType == GEOM::FDT_Double )
|
||||||
|
@ -715,11 +715,14 @@ CORBA::Double GEOM_ITransformOperations_i::ProjectPointOnWire
|
|||||||
}
|
}
|
||||||
|
|
||||||
Handle(GEOM_Object) aPointOnEdge;
|
Handle(GEOM_Object) aPointOnEdge;
|
||||||
|
Standard_Integer anEdgeIndex;
|
||||||
CORBA::Double aResult = GetOperations()->ProjectPointOnWire
|
CORBA::Double aResult = GetOperations()->ProjectPointOnWire
|
||||||
(aPoint, aWire, aPointOnEdge, theEdgeInWireIndex);
|
(aPoint, aWire, aPointOnEdge, anEdgeIndex);
|
||||||
|
|
||||||
if (!aPointOnEdge.IsNull()) {
|
if (!aPointOnEdge.IsNull()) {
|
||||||
thePointOnEdge = GetObject(aPointOnEdge);
|
GEOM::GEOM_Object_var obj = GetObject(aPointOnEdge);
|
||||||
|
thePointOnEdge = obj.out();
|
||||||
|
theEdgeInWireIndex = anEdgeIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
return aResult;
|
return aResult;
|
||||||
|
Loading…
Reference in New Issue
Block a user