summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2019-08-14 17:41:29 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2019-10-08 19:30:24 (GMT)
commit0beba4aac2a59495c07a96cc1ef07fc9a312ac30 (patch)
tree7d2b536589543ad2317e2e9b00d05394bae899f7
parentc13078a0ed05b02095c7fc9be31628efd978e7d9 (diff)
downloadhdf5-0beba4aac2a59495c07a96cc1ef07fc9a312ac30.zip
hdf5-0beba4aac2a59495c07a96cc1ef07fc9a312ac30.tar.gz
hdf5-0beba4aac2a59495c07a96cc1ef07fc9a312ac30.tar.bz2
Fix reference type comparison in h5dump
-rw-r--r--tools/lib/h5tools_dump.c6
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: