summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2009-02-06 16:31:33 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2009-02-06 16:31:33 (GMT)
commitbd3565d4487bf3b20d2cdd16b762f8561ffc9d1e (patch)
tree8a47ba6a36ca034e6f604dacb01d4332becbc7da
parent5a80587476f05ae9cdc0fc59efb499e1c9ffee6b (diff)
downloadhdf5-bd3565d4487bf3b20d2cdd16b762f8561ffc9d1e.zip
hdf5-bd3565d4487bf3b20d2cdd16b762f8561ffc9d1e.tar.gz
hdf5-bd3565d4487bf3b20d2cdd16b762f8561ffc9d1e.tar.bz2
[svn-r16450] bug fix: compare the return value of H5Tequal with TRUE
tested: h5committest
-rw-r--r--tools/h5ls/h5ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c
index d0af4bb..0c492d0 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -952,9 +952,9 @@ display_reference_type(hid_t type, int UNUSED ind)
{
if (H5T_REFERENCE!=H5Tget_class(type)) return FALSE;
- if (H5Tequal(type, H5T_STD_REF_OBJ)) {
+ if (H5Tequal(type, H5T_STD_REF_OBJ)==TRUE) {
printf("object reference");
- } else if (H5Tequal(type, H5T_STD_REF_DSETREG)) {
+ } else if (H5Tequal(type, H5T_STD_REF_DSETREG)==TRUE) {
printf("dataset region reference");
} else {
printf("%lu-byte unknown reference",