From c41460fc6130481a69261bd050f0469cc674f48e Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 23 Oct 2015 18:38:01 +0300 Subject: [PATCH] correct conversion pointer to int on linux --- src/HYDROData/HYDROData_LandCoverMap.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.39.2