summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/h5tools.c')
-rw-r--r--tools/lib/h5tools.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lib/h5tools.c b/tools/lib/h5tools.c
index f48b335..a3cb2a8 100644
--- a/tools/lib/h5tools.c
+++ b/tools/lib/h5tools.c
@@ -1216,6 +1216,10 @@ h5tools_dump_dset(FILE *stream, const h5tool_format_t *info, hid_t dset, hid_t _
if (info->raw || bin_form == 1 )
p_type = H5Tcopy(f_type);
+ else if (bin_form == 2 )
+ p_type = h5tools_get_little_endian_type(f_type);
+ else if (bin_form == 3 )
+ p_type = h5tools_get_big_endian_type(f_type);
else
p_type = h5tools_get_native_type(f_type);