]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
[bos #26398] [CEA] convert cgns to HDF Invalid Data-Type
authoreap <eap@opencascade.com>
Wed, 16 Mar 2022 11:39:19 +0000 (14:39 +0300)
committereap <eap@opencascade.com>
Wed, 16 Mar 2022 11:39:19 +0000 (14:39 +0300)
  Fix compilation with -DCGNS_ENABLE_64BIT:BOOL=ON

src/DriverCGNS/DriverCGNS_Read.cxx

index 5afdfa3e7d1d2d9db8cb26f24c579a66822db3ea..b50b012954b9f8314bd3d498f8c2f0931be27438 100644 (file)
@@ -217,7 +217,8 @@ namespace
    */
   //================================================================================
 
-  bool isEqualNodes( const int* nIds1, const int* nIds2, int nbNodes, SMESHDS_Mesh* mesh )
+  bool isEqualNodes( const cgsize_t* nIds1, const cgsize_t* nIds2, size_t nbNodes,
+                     SMESHDS_Mesh* mesh )
   {
     if ( nbNodes > 0 )
     {
@@ -317,7 +318,7 @@ namespace
             }
             // check if range and donorRange describe the same nodes
             {
-              int ids1[2], ids2[2], nbN = 0;
+              cgsize_t ids1[2], ids2[2], nbN = 0;
               TPointRangeIterator rangeIt1bis( range, _meshDim );
               index1 = rangeIt1bis.Next();
               index2 = T * ( index1 - begin1 ) + begin2;