diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-08-31 01:48:01 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-08-31 01:48:01 (GMT) |
commit | f92d7f73df1846f4489fb6e2c2dd857b636b4deb (patch) | |
tree | 74d28cd355a39d0d9f8dc0c96484380b6b12628e /src/H5Tcompound.c | |
parent | bd3510bea3638d5f4281bf9a6bbfe4c4a8b3ca9a (diff) | |
download | hdf5-f92d7f73df1846f4489fb6e2c2dd857b636b4deb.zip hdf5-f92d7f73df1846f4489fb6e2c2dd857b636b4deb.tar.gz hdf5-f92d7f73df1846f4489fb6e2c2dd857b636b4deb.tar.bz2 |
[svn-r7434] Purpose:
Bug Fix and code cleanup
Description:
Correct error in H5T_detect_class that was causing nested compound datatypes
with to not detect the datatype class of fields correctly, which caused errors
with fill-values, variable-length datatypes and chunks later on.
Return the rank of the array datatype from H5Tget_array_dims(), like
H5Sget_dims().
Lots of cleanups to datatype code, to make the handling of arrays, compound
types, variable-length strings and sequences and enumerated types more
consistent and robust.
Platforms tested:
FreeBSD 4.9 (sleipnir)
h5committest
Diffstat (limited to 'src/H5Tcompound.c')
-rw-r--r-- | src/H5Tcompound.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/H5Tcompound.c b/src/H5Tcompound.c index b13788f..790de46 100644 --- a/src/H5Tcompound.c +++ b/src/H5Tcompound.c @@ -447,16 +447,11 @@ H5T_insert(H5T_t *parent, const char *name, size_t offset, const H5T_t *member) parent->u.compnd.nmembs++; /* - * Set the "force conversion" flag if VL datatype fields exist in this type - * or any component types + * Set the "force conversion" flag if the field's datatype indicates */ - if(member->type==H5T_VLEN || member->force_conv==TRUE) + if(member->force_conv==TRUE) parent->force_conv=TRUE; - /* Set the flag for this compound type, if the field is an array */ - if(member->type==H5T_ARRAY) - parent->u.compnd.has_array=TRUE; - done: FUNC_LEAVE_NOAPI(ret_value); } |