summaryrefslogtreecommitdiffstats
path: root/HDF5Examples/C/H5VDS/h5ex_vds-eiger.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2024-03-07 21:05:28 (GMT)
committerGitHub <noreply@github.com>2024-03-07 21:05:28 (GMT)
commit871a49feca4725b83e2ce0b6ad4c8ae9551d9f06 (patch)
tree3d1d8df37cfa0953401e086396f857a8b1459be3 /HDF5Examples/C/H5VDS/h5ex_vds-eiger.c
parent577a32fe83a800b170d4fd8e079fbe2774c9396c (diff)
downloadhdf5-871a49feca4725b83e2ce0b6ad4c8ae9551d9f06.zip
hdf5-871a49feca4725b83e2ce0b6ad4c8ae9551d9f06.tar.gz
hdf5-871a49feca4725b83e2ce0b6ad4c8ae9551d9f06.tar.bz2
Use H5T_STD_I32LE to create datatype in vds examples (#4070)
Fixes issues when VDS examples are tested on BE systems
Diffstat (limited to 'HDF5Examples/C/H5VDS/h5ex_vds-eiger.c')
-rw-r--r--HDF5Examples/C/H5VDS/h5ex_vds-eiger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/HDF5Examples/C/H5VDS/h5ex_vds-eiger.c b/HDF5Examples/C/H5VDS/h5ex_vds-eiger.c
index 0629d73..8a41de6 100644
--- a/HDF5Examples/C/H5VDS/h5ex_vds-eiger.c
+++ b/HDF5Examples/C/H5VDS/h5ex_vds-eiger.c
@@ -89,7 +89,7 @@ main(void)
status = H5Pset_virtual(dcpl, vspace, "f-%b.h5", "/A", src_space);
/* Create a virtual dataset */
- dset = H5Dcreate2(file, DATASET, H5T_NATIVE_INT, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT);
+ dset = H5Dcreate2(file, DATASET, H5T_STD_I32LE, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT);
status = H5Sclose(vspace);
status = H5Sclose(src_space);
status = H5Dclose(dset);