Mercurial > octave-nkf
diff libinterp/octave-value/ov-uint32.cc @ 20292:d54aa96abadf stable
Fix load/save of integers with -hdf5 (bug #45225)
* oct-hdf5.h: Do not #define HDF5_SAVE_TYPE.
* ov-int16.cc, ov-int32.cc, ov-int64.cc, ov-int8.cc, ov-uint16.cc, ov-uint32.cc,
ov-uint64.cc, ov-uint8.cc: Restore correct definition of HDF5_SAVE_TYPE for
each distinct integer type.
* io.tst: Add %!test for load/save of integers with -hdf5.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Wed, 10 Jun 2015 09:26:14 -0400 |
parents | 09ed6f7538dd |
children | c6224b4e7774 |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-uint32.cc Wed Jun 10 08:42:11 2015 -0400 +++ b/libinterp/octave-value/ov-uint32.cc Wed Jun 10 09:26:14 2015 -0400 @@ -40,6 +40,10 @@ #include "ops.h" #include "ov-base.h" +#if defined (HAVE_HDF5) +#define HDF5_SAVE_TYPE H5T_NATIVE_UINT32 +#endif + #include "ov-base-int.h" #include "ov-base-int.cc" #include "ov-uint32.h"