diff options
author | Quincey Koziol <koziol@lbl.gov> | 2019-01-11 15:58:46 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@lbl.gov> | 2019-01-11 15:58:46 (GMT) |
commit | ef3c3970fbe9cda1b1cff51ef5944ef907a0a604 (patch) | |
tree | 42848d0a2f27cb5547ae1690e08e90ed0a96ddb8 /src/H5Spoint.c | |
parent | b9c8ddbfcc3be04e81718a351067f57e7e444ca1 (diff) | |
parent | 4729d04d9123e8cd6b2bba071695ace7ddd2a7b5 (diff) | |
download | hdf5-ef3c3970fbe9cda1b1cff51ef5944ef907a0a604.zip hdf5-ef3c3970fbe9cda1b1cff51ef5944ef907a0a604.tar.gz hdf5-ef3c3970fbe9cda1b1cff51ef5944ef907a0a604.tar.bz2 |
Merge pull request #1468 in HDFFV/hdf5 from merge_hyperslab_updates_02 to develop
* commit '4729d04d9123e8cd6b2bba071695ace7ddd2a7b5':
Delta reduction against hyperslab_updates branch.
Diffstat (limited to 'src/H5Spoint.c')
-rw-r--r-- | src/H5Spoint.c | 9 |
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() */ |