From: eap Date: Mon, 11 Oct 2021 13:57:37 +0000 (+0300) Subject: bos #26429 [CEA] Can't load meshs from hdf if its size is too big X-Git-Tag: V9_8_0a1~4^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a650699246d85a501de01b58d079985200ff1a7;p=modules%2Fkernel.git bos #26429 [CEA] Can't load meshs from hdf if its size is too big --- diff --git a/src/HDFPersist/HDFdatasetGetSize.c b/src/HDFPersist/HDFdatasetGetSize.c index 191f27db3..1f30e55f0 100644 --- a/src/HDFPersist/HDFdatasetGetSize.c +++ b/src/HDFPersist/HDFdatasetGetSize.c @@ -29,12 +29,12 @@ SALOME HDFPersist : implementation of HDF persitent ( save/ restore ) #include #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; } diff --git a/src/HDFPersist/hdfi.h b/src/HDFPersist/hdfi.h index 0bf2d035c..6e6f0c627 100644 --- a/src/HDFPersist/hdfi.h +++ b/src/HDFPersist/hdfi.h @@ -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);