summaryrefslogtreecommitdiffstats
path: root/tools/src
diff options
context:
space:
mode:
Diffstat (limited to 'tools/src')
-rw-r--r--tools/src/h5ls/h5ls.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/src/h5ls/h5ls.c b/tools/src/h5ls/h5ls.c
index 09bc323..64003e7 100644
--- a/tools/src/h5ls/h5ls.c
+++ b/tools/src/h5ls/h5ls.c
@@ -530,7 +530,10 @@ print_native_type(h5tools_str_t *buffer, hid_t type, int ind)
h5tools_str_append(buffer, "native hbool_t");
}
else {
- return print_int_type(buffer, type, ind);
+ if (H5T_FLOAT == H5Tget_class(type))
+ return print_float_type(buffer, type, ind);
+ else
+ return print_int_type(buffer, type, ind);
}
}
else {