diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2005-02-08 22:20:48 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2005-02-08 22:20:48 (GMT) |
commit | 7a420dad641c76d53904840ce1ae24fc9e27f5ad (patch) | |
tree | 80dcd4fa1e48dd9e7d185df54dc278e3a5ac682c /src/H5T.c | |
parent | 99c08dd282650fcf968e37efdba00fa65bd349b7 (diff) | |
download | hdf5-7a420dad641c76d53904840ce1ae24fc9e27f5ad.zip hdf5-7a420dad641c76d53904840ce1ae24fc9e27f5ad.tar.gz hdf5-7a420dad641c76d53904840ce1ae24fc9e27f5ad.tar.bz2 |
[svn-r9963] Purpose: Bug fix
Description: For enum datatype, if H5Tget_member_value was called after
H5Tenum_valueof, it wouldn't return correct value. It happened because
there's sorting in H5Tenum_valueof which changed the order of enum members.
Solution: Made a copy of original enum datatype and do sorting on the copied
datatype, to protect the original order. Also added test case in dtypes.c
Platforms tested: h5committest and fuss.
Misc. update: RELEASE.txt
Diffstat (limited to 'src/H5T.c')
-rw-r--r-- | src/H5T.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3204,7 +3204,7 @@ H5T_free(H5T_t *dt) /* Close the parent */ if (dt->shared->parent && H5T_close(dt->shared->parent)<0) - HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to close parent data type"); + HGOTO_ERROR(H5E_DATATYPE, H5E_CANTCLOSEOBJ, FAIL, "unable to close parent data type"); done: FUNC_LEAVE_NOAPI(ret_value); |