]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
bos #26429 [CEA] Can't load meshs from hdf if its size is too big
authoreap <eap@opencascade.com>
Mon, 11 Oct 2021 13:57:37 +0000 (16:57 +0300)
committereap <eap@opencascade.com>
Mon, 11 Oct 2021 13:57:37 +0000 (16:57 +0300)
src/HDFPersist/HDFdatasetGetSize.c
src/HDFPersist/hdfi.h

index 191f27db3a0a513d0d80fa6b8b4887ee297f35e9..1f30e55f0c21434a4643e6080a5c925eef4b1f96 100644 (file)
@@ -29,12 +29,12 @@ SALOME HDFPersist : implementation of HDF persitent ( save/ restore )
 #include <hdf5.h>
 #include "hdfi.h"
 
-int HDFdatasetGetSize(hdf_idt id)
+long HDFdatasetGetSize(hdf_idt id)
 {
   hdf_size size;
 
   if ((long)(size = H5Dget_storage_size(id)) < 0)
     return -1;
 
-  return (int) size;
+  return (long) size;
 }
index 0bf2d035ca20f52b9ff6e2e9cde5aec7960ae59f..6e6f0c6279fa1e9bfad689690ce0d2d9a4502696 100644 (file)
@@ -108,7 +108,7 @@ extern
 hdf_err HDFdatasetGetDim(hdf_idt id,hdf_size dim[]);
 
 extern
-int HDFdatasetGetSize(hdf_idt id);
+long HDFdatasetGetSize(hdf_idt id);
 
 extern 
 hdf_byte_order HDFdatasetGetOrder(hdf_idt id);