diff options
author | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2019-08-14 17:41:29 (GMT) |
---|---|---|
committer | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2019-10-08 20:19:35 (GMT) |
commit | b18e4b0f1aa5548fd0b9f4a9fbc0a75d650bd10f (patch) | |
tree | 1373f932cfe0031577ec3ad18dad4c05534be87c /tools | |
parent | 383e7f78711f69909775e3210416b684a3ecb097 (diff) | |
download | hdf5-b18e4b0f1aa5548fd0b9f4a9fbc0a75d650bd10f.zip hdf5-b18e4b0f1aa5548fd0b9f4a9fbc0a75d650bd10f.tar.gz hdf5-b18e4b0f1aa5548fd0b9f4a9fbc0a75d650bd10f.tar.bz2 |
Fix reference type comparison in h5dump
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/h5tools_dump.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c index e80cf53..ebe5c4a 100644 --- a/tools/lib/h5tools_dump.c +++ b/tools/lib/h5tools_dump.c @@ -2345,9 +2345,13 @@ h5tools_print_datatype(FILE *stream, h5tools_str_t *buffer, const h5tool_format_ if (H5Tequal(type, H5T_STD_REF_DSETREG) == TRUE) { h5tools_str_append(buffer, " { H5T_STD_REF_DSETREG }"); } - else { + else if (H5Tequal(type, H5T_STD_REF_OBJ) == TRUE) { h5tools_str_append(buffer, " { H5T_STD_REF_OBJECT }"); } + else if (H5Tequal(type, H5T_STD_REF) == TRUE) { + h5tools_str_append(buffer, " { H5T_STD_REF }"); + } else + h5tools_str_append(buffer, " { UNDEFINED }"); break; case H5T_ENUM: |