diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2005-02-08 16:42:43 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2005-02-08 16:42:43 (GMT) |
commit | 0c81f8682ce92f8c1f440af911de079348cd0832 (patch) | |
tree | 804e79d11b1d5975f112810ee6cb880545f5ff50 /src/H5Tcompound.c | |
parent | c155ffe2fca107039074e9416b2cdfdc983cde2f (diff) | |
download | hdf5-0c81f8682ce92f8c1f440af911de079348cd0832.zip hdf5-0c81f8682ce92f8c1f440af911de079348cd0832.tar.gz hdf5-0c81f8682ce92f8c1f440af911de079348cd0832.tar.bz2 |
[svn-r9958] Purpose: Bug fix
Description: For variable-length string, H5Tget_class returned H5T_STRING as
its class. But H5Tdetect_class and H5Tget_member_class considered it as
H5T_VLEN. This is fixed to let all these 3 functions treat it as H5T_STRING.
A few more test cases are also added to dtypes.c
Platforms tested: h5committest and fuss
Misc. update: RELEASE.txt
Diffstat (limited to 'src/H5Tcompound.c')
-rw-r--r-- | src/H5Tcompound.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Tcompound.c b/src/H5Tcompound.c index 46b1773..37c79ed 100644 --- a/src/H5Tcompound.c +++ b/src/H5Tcompound.c @@ -170,8 +170,9 @@ H5Tget_member_class(hid_t type_id, unsigned membno) if (membno >= dt->shared->u.compnd.nmembs) HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, H5T_NO_CLASS, "invalid member number") - /* Value */ - ret_value = dt->shared->u.compnd.memb[membno].type->shared->type; + /* Get the type's class. We have to use this function to get type class + * because of the concern of variable-length string. */ + ret_value = H5T_get_class(dt->shared->u.compnd.memb[membno].type, FALSE); done: FUNC_LEAVE_API(ret_value) |