summaryrefslogtreecommitdiffstats
path: root/src/H5Sselect.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-10-26 17:42:48 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-10-26 17:42:48 (GMT)
commit91fa38993526b45ad2e0da2f8a24548bac21d832 (patch)
tree5c1b8d0153faf4bfcec36280872acc8ef71d6eaf /src/H5Sselect.c
parentbda4c6c94e77a5ff0aceb7117c90e371505ba233 (diff)
downloadhdf5-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.c10
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);