summaryrefslogtreecommitdiffstats
path: root/src/H5Spoint.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2019-01-11 05:08:51 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2019-01-11 05:08:51 (GMT)
commit4729d04d9123e8cd6b2bba071695ace7ddd2a7b5 (patch)
tree42848d0a2f27cb5547ae1690e08e90ed0a96ddb8 /src/H5Spoint.c
parentb9c8ddbfcc3be04e81718a351067f57e7e444ca1 (diff)
downloadhdf5-4729d04d9123e8cd6b2bba071695ace7ddd2a7b5.zip
hdf5-4729d04d9123e8cd6b2bba071695ace7ddd2a7b5.tar.gz
hdf5-4729d04d9123e8cd6b2bba071695ace7ddd2a7b5.tar.bz2
Delta reduction against hyperslab_updates branch.
Diffstat (limited to 'src/H5Spoint.c')
-rw-r--r--src/H5Spoint.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/H5Spoint.c b/src/H5Spoint.c
index 9924920..aea7d5c 100644
--- a/src/H5Spoint.c
+++ b/src/H5Spoint.c
@@ -775,7 +775,6 @@ done:
static hssize_t
H5S_point_serial_size (const H5S_t *space)
{
- H5S_pnt_node_t *curr; /* Point information nodes */
hssize_t ret_value = -1; /* Return value */
FUNC_ENTER_NOAPI_NOINIT_NOERR
@@ -789,12 +788,8 @@ H5S_point_serial_size (const H5S_t *space)
ret_value = 24;
/* Count points in selection */
- curr=space->select.sel_info.pnt_lst->head;
- while(curr!=NULL) {
- /* Add 4 bytes times the rank for each element selected */
- ret_value+=4*space->extent.rank;
- curr=curr->next;
- } /* end while */
+ /* (Add 4 bytes times the rank for each element selected) */
+ ret_value += (4 * space->extent.rank) * (hssize_t)H5S_GET_SELECT_NPOINTS(space);
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5S_point_serial_size() */