summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5.c b/src/H5.c
index be91357..331c9d0 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -1823,8 +1823,8 @@ H5_trace (hbool_t returning, const char *func, const char *type, ...)
/*Save the rank of simple data spaces for arrays*/
{
H5S_t *space = H5I_object(obj);
- if (H5S_SIMPLE==space->extent.type) {
- asize[argno] = space->extent.u.simple.rank;
+ if (H5S_SIMPLE==H5S_get_simple_extent_type(space)) {
+ asize[argno] = H5S_get_simple_extent_ndims(space);
}
}
break;