]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
correct conversion pointer to int on linux
authorasl <asl@opencascade.com>
Fri, 23 Oct 2015 15:38:01 +0000 (18:38 +0300)
committerasl <asl@opencascade.com>
Fri, 23 Oct 2015 15:38:01 +0000 (18:38 +0300)
src/HYDROData/HYDROData_LandCoverMap.cxx

index 7c619b90632774519a7ff2900426d672931ec18d..9f941ce40ca5fd41151f2e4cf2eec61dec310011 100644 (file)
@@ -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 )