diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1998-10-26 17:42:48 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1998-10-26 17:42:48 (GMT) |
commit | 91fa38993526b45ad2e0da2f8a24548bac21d832 (patch) | |
tree | 5c1b8d0153faf4bfcec36280872acc8ef71d6eaf /src/H5Sselect.c | |
parent | bda4c6c94e77a5ff0aceb7117c90e371505ba233 (diff) | |
download | hdf5-91fa38993526b45ad2e0da2f8a24548bac21d832.zip hdf5-91fa38993526b45ad2e0da2f8a24548bac21d832.tar.gz hdf5-91fa38993526b45ad2e0da2f8a24548bac21d832.tar.bz2 |
[svn-r793] Changed return value for H5Sget_select_npoints to hssize_t to enable negative
return values.
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r-- | src/H5Sselect.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c index e770d3a..7bc4d19 100644 --- a/src/H5Sselect.c +++ b/src/H5Sselect.c @@ -708,7 +708,7 @@ done: PURPOSE Get the number of elements in current selection USAGE - hsize_t H5Sget_select_npoints(dsid) + hssize_t H5Sget_select_npoints(dsid) hid_t dsid; IN: Dataspace ID of selection to query RETURNS The number of elements in selection on success, 0 on failure @@ -719,11 +719,11 @@ done: EXAMPLES REVISION LOG --------------------------------------------------------------------------*/ -hsize_t +hssize_t H5Sget_select_npoints(hid_t spaceid) { H5S_t *space = NULL; /* Dataspace to modify selection of */ - hsize_t ret_value=0; /* return value */ + hssize_t ret_value=FAIL; /* return value */ FUNC_ENTER (H5Sget_select_npoints, 0); H5TRACE1("h","i",spaceid); @@ -756,10 +756,10 @@ H5Sget_select_npoints(hid_t spaceid) EXAMPLES REVISION LOG --------------------------------------------------------------------------*/ -hsize_t +hssize_t H5S_get_select_npoints (const H5S_t *space) { - hsize_t ret_value=FAIL; /* return value */ + hssize_t ret_value=FAIL; /* return value */ FUNC_ENTER (H5S_get_select_npoints, FAIL); |