summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2019-09-01 06:13:08 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2019-09-01 06:13:08 (GMT)
commitb679d11bccb5ff5b8460871079c4e36126d96fa4 (patch)
treef75e488610e7747ae24ebd9b73ac28483f197f96 /src/H5D.c
parenta633e333346eef38bf689b6a8edb817c732298c0 (diff)
downloadhdf5-b679d11bccb5ff5b8460871079c4e36126d96fa4.zip
hdf5-b679d11bccb5ff5b8460871079c4e36126d96fa4.tar.gz
hdf5-b679d11bccb5ff5b8460871079c4e36126d96fa4.tar.bz2
Updated based on reviews and refactored test code
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 9c3a096..a22f173 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -1167,7 +1167,7 @@ herr_t
H5Dget_chunk_info(hid_t dset_id, hid_t fspace_id, hsize_t chk_index, hsize_t *offset, unsigned *filter_mask, haddr_t *addr, hsize_t *size)
{
H5VL_object_t *vol_obj = NULL; /* Dataset for this operation */
- hsize_t nchunks= 0;
+ hsize_t nchunks = 0;
herr_t ret_value = SUCCEED;
FUNC_ENTER_API(FAIL)
@@ -1186,7 +1186,7 @@ H5Dget_chunk_info(hid_t dset_id, hid_t fspace_id, hsize_t chk_index, hsize_t *of
/* Check range for chunk index */
if(chk_index >= nchunks)
- HGOTO_ERROR(H5E_IO, H5E_BADRANGE, FAIL, "chunk index is out of range")
+ HGOTO_ERROR(H5E_IO, H5E_DATASET, FAIL, "chunk index is out of range")
/* Call private function to get the chunk info given the chunk's index */
if(H5VL_dataset_optional(vol_obj, H5P_DATASET_XFER_DEFAULT, H5_REQUEST_NULL, H5VL_NATIVE_DATASET_GET_CHUNK_INFO_BY_IDX, fspace_id, chk_index, offset, filter_mask, addr, size) < 0)