diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2008-09-22 23:41:31 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2008-09-22 23:41:31 (GMT) |
commit | 5bbc0eedffa32de995e993a19d345f491fc1695c (patch) | |
tree | d733f4321b20a1842da72f30e7b2b2ab18fcc1f5 /src/H5Dio.c | |
parent | fe6cf16d94aeface4e429660142b243f471f8fbb (diff) | |
download | hdf5-5bbc0eedffa32de995e993a19d345f491fc1695c.zip hdf5-5bbc0eedffa32de995e993a19d345f491fc1695c.tar.gz hdf5-5bbc0eedffa32de995e993a19d345f491fc1695c.tar.bz2 |
[svn-r15682] Purpose: fix bug 1298
Description: The optimized "subset" compound conversion function would
improperly copy the "blank" space at the end of compound types. Modified
H5T_conv_struct_init to detect when the subset type has extra space at the end,
and calculate the size of the data that should be copied into the conversion
buffer for each element. Changes to the functions that implement these
conversions.
Tested: kagiso, linew, smirom (h5committest)
Diffstat (limited to 'src/H5Dio.c')
-rw-r--r-- | src/H5Dio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Dio.c b/src/H5Dio.c index 45fa21a..b7c1d72 100644 --- a/src/H5Dio.c +++ b/src/H5Dio.c @@ -745,7 +745,7 @@ H5D_typeinfo_init(const H5D_t *dset, const H5D_dxpl_cache_t *dxpl_cache, type_info->is_conv_noop = H5T_path_noop(type_info->tpath); type_info->is_xform_noop = H5Z_xform_noop(dxpl_cache->data_xform_prop); if(type_info->is_xform_noop && type_info->is_conv_noop) { - type_info->cmpd_subset = H5T_SUBSET_FALSE; + type_info->cmpd_subset = NULL; type_info->need_bkg = H5T_BKG_NO; } /* end if */ else { |