diff options
Diffstat (limited to 'src/H5Stest.c')
-rw-r--r-- | src/H5Stest.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5Stest.c b/src/H5Stest.c index 60c5679..4c7709b 100644 --- a/src/H5Stest.c +++ b/src/H5Stest.c @@ -94,7 +94,10 @@ H5S__get_rebuild_status_test(hid_t space_id) if(NULL == (space = (H5S_t *)H5I_object_verify(space_id, H5I_DATASPACE))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataspace") - ret_value = (htri_t)space->select.sel_info.hslab->diminfo_valid; + if(H5S_DIMINFO_VALID_YES == space->select.sel_info.hslab->diminfo_valid) + ret_value = TRUE; + else + ret_value = FALSE; done: FUNC_LEAVE_NOAPI(ret_value) |