From: asl Date: Fri, 23 Oct 2015 15:38:01 +0000 (+0300) Subject: correct conversion pointer to int on linux X-Git-Tag: v1.5~68 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c41460fc6130481a69261bd050f0469cc674f48e;p=modules%2Fhydro.git correct conversion pointer to int on linux --- diff --git a/src/HYDROData/HYDROData_LandCoverMap.cxx b/src/HYDROData/HYDROData_LandCoverMap.cxx index 7c619b90..9f941ce4 100644 --- a/src/HYDROData/HYDROData_LandCoverMap.cxx +++ b/src/HYDROData/HYDROData_LandCoverMap.cxx @@ -668,7 +668,7 @@ bool HYDROData_LandCoverMap::LocalPartition( const TopoDS_Shape& theNewShape, co for( ; aMIt.More(); aMIt.Next() ) { //std::cout << " " << aMIt.Value() << std::endl; - int aKey = (int)aMIt.Value().TShape().operator->(); + int aKey = (int)(uintptr_t)aMIt.Value().TShape().operator->(); aShapesFromNewFace.Add( aKey ); } @@ -687,7 +687,7 @@ bool HYDROData_LandCoverMap::LocalPartition( const TopoDS_Shape& theNewShape, co { TopoDS_Shape aShape = aMIt.Value(); bool isFace = aShape.ShapeType()==TopAbs_FACE; - int aKey = (int)aShape.TShape().operator->(); + int aKey = (int)(uintptr_t)aShape.TShape().operator->(); bool isAlsoFromNew = aShapesFromNewFace.Contains( aKey ); //std::cout << " " << aShape << " " << isAlsoFromNew << std::endl; if( isFace && !isAlsoFromNew )