diff options
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r-- | src/H5Sselect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c index 1379617..c36cc03 100644 --- a/src/H5Sselect.c +++ b/src/H5Sselect.c @@ -1725,7 +1725,7 @@ H5S_select_iterate(void *buf, hid_t type_id, H5S_t *space, H5D_operator_t operat assert(buf); assert(space); assert(operator); - assert(H5I_DATATYPE != H5I_get_type(type_id)); + assert(H5I_DATATYPE == H5I_get_type(type_id)); switch(space->select.type) { case H5S_SEL_POINTS: /* Sequence of points selected */ @@ -1749,6 +1749,6 @@ H5S_select_iterate(void *buf, hid_t type_id, H5S_t *space, H5D_operator_t operat break; } - FUNC_LEAVE(SUCCEED); + FUNC_LEAVE(ret_value); } /* end H5S_select_iterate() */ |