diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-10-10 20:55:54 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-10-10 20:55:54 (GMT) |
commit | 64b8f7fd738aec5c4683cdd457fbbf334c0b7bba (patch) | |
tree | 6d3e6b39b1550241071c338ee01d1124a22e96b1 /src/H5Tconv.c | |
parent | 46434499668593bb2421a58365700e53c128cb10 (diff) | |
download | hdf5-64b8f7fd738aec5c4683cdd457fbbf334c0b7bba.zip hdf5-64b8f7fd738aec5c4683cdd457fbbf334c0b7bba.tar.gz hdf5-64b8f7fd738aec5c4683cdd457fbbf334c0b7bba.tar.bz2 |
[svn-r2657]
Purpose:
Parallel Bug Fixes
Description:
Was out of sync with header file re-arrangements I checked in last night.
Solution:
Fixed to use new header files, etc.
Platforms tested:
O2K (modi4)
Diffstat (limited to 'src/H5Tconv.c')
-rw-r--r-- | src/H5Tconv.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c index ffbcd86..66fa3e2 100644 --- a/src/H5Tconv.c +++ b/src/H5Tconv.c @@ -975,7 +975,7 @@ H5T_conv_struct(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts, H5T_cmemb_t *src_memb = NULL; /*source struct member descript.*/ H5T_cmemb_t *dst_memb = NULL; /*destination struct memb desc. */ size_t offset; /*byte offset wrt struct */ - size_t src_delta, dst_delta; /*source & destination stride */ + size_t src_delta; /*source stride */ uintn elmtno; intn i; /*counters */ H5T_conv_struct_t *priv = (H5T_conv_struct_t *)(cdata->priv); @@ -1047,16 +1047,14 @@ H5T_conv_struct(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts, */ if (buf_stride) { src_delta = buf_stride; - dst_delta = buf_stride; - if (!bkg_stride) bkg_stride = dst->size; + if (!bkg_stride) + bkg_stride = dst->size; } else if (dst->size <= src->size) { src_delta = src->size; - dst_delta = dst->size; - bkg_stride = dst->size; + bkg_stride = dst->size; } else { src_delta = -(src->size); - dst_delta = -(dst->size); - bkg_stride = -(dst->size); + bkg_stride = -(dst->size); xbuf += (nelmts-1) * src->size; xbkg += (nelmts-1) * dst->size; } |