summaryrefslogtreecommitdiffstats
path: root/src/H5Sall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Sall.c')
-rw-r--r--src/H5Sall.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c
index ab12d70..8bab11c 100644
--- a/src/H5Sall.c
+++ b/src/H5Sall.c
@@ -175,7 +175,6 @@ done:
hsize_t
H5S_all_npoints (const H5S_t *space)
{
- unsigned u; /* Counters */
hsize_t ret_value;
FUNC_ENTER_NOAPI(H5S_all_npoints, 0);
@@ -183,8 +182,7 @@ H5S_all_npoints (const H5S_t *space)
/* Check args */
assert (space);
- for(u=0, ret_value=1; u<space->extent.u.simple.rank; u++)
- ret_value*=space->extent.u.simple.size[u];
+ ret_value=(hsize_t)H5S_get_simple_extent_npoints(space);
done:
FUNC_LEAVE (ret_value);