netcdf-c/libhdf5
Dennis Heimbigner 4b936ee26a Fix use of 'int' to represent 'hid_t' that caused HDF5 1.10 to fail.
re: github issue https://github.com/Unidata/netcdf-fortran/issues/82

This was originally discovered in the Fortran tests, but is
a problem in the C library.

The problem only occurred when using HDF5-1.10.x.  The reason it
failed is that starting with 1.10, the hid_t type was changed
from 32 bits to 64 bits.
The function libsrc4/nc4memcb.c#NC4_image_init was using type int (doh!)
to return the hdf fileid instead of hid_t type.  This, of course,
caused the id to be truncated and in turn later use of the id
caused hdf5 to fail.

Fix is trivial: replace int with hid_t. This also requires a related
change in nc4mem.c.

Also added the test case derived from the original Fortran code.

You would think I would learn...
2018-05-30 14:47:37 -06:00
..
CMakeLists.txt moving HDF5 functions to libhdf5 2018-05-24 14:27:16 -06:00
hdf5attr.c added files 2018-05-15 06:51:44 -06:00
hdf5dim.c added files 2018-05-15 06:51:44 -06:00
hdf5file.c Fix use of 'int' to represent 'hid_t' that caused HDF5 1.10 to fail. 2018-05-30 14:47:37 -06:00
hdf5grp.c added files 2018-05-15 06:51:44 -06:00
hdf5internal.c fixed logging 2018-05-24 14:55:34 -06:00
hdf5type.c comment cleanup 2018-05-24 14:43:00 -06:00
Makefile.am moving HDF5 functions to libhdf5 2018-05-24 14:27:16 -06:00
nc4hdf.c removed changes to nc4hdf5.c 2018-05-24 15:26:17 -06:00
nc4info.c