diff options
Diffstat (limited to 'src/H5Snone.c')
-rw-r--r-- | src/H5Snone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Snone.c b/src/H5Snone.c index eee07bd..f9abe49 100644 --- a/src/H5Snone.c +++ b/src/H5Snone.c @@ -517,7 +517,7 @@ herr_t H5Sselect_none (hid_t spaceid) FUNC_ENTER_API(H5Sselect_none, FAIL); /* Check args */ - if (H5I_DATASPACE != H5I_get_type(spaceid) || NULL == (space=H5I_object(spaceid))) + if (NULL == (space=H5I_object_verify(spaceid, H5I_DATASPACE))) HRETURN_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data space"); /* Change to "none" selection */ |