summaryrefslogtreecommitdiffstats
path: root/src/H5Tconv.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2002-07-11 21:43:52 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2002-07-11 21:43:52 (GMT)
commit5febc6bb69502df15bcf2de57ee64db7aa05e052 (patch)
treee6f8ae3fb2100be8333286c92c81675890ac529d /src/H5Tconv.c
parenta211a322c0018c755693ac0506b6c10d4422f471 (diff)
downloadhdf5-5febc6bb69502df15bcf2de57ee64db7aa05e052.zip
hdf5-5febc6bb69502df15bcf2de57ee64db7aa05e052.tar.gz
hdf5-5febc6bb69502df15bcf2de57ee64db7aa05e052.tar.bz2
[svn-r5779]
Purpose: Bug fix Description: Nested VL datatype test fails on 64-bit machines Solution: bug fixed. Platforms tested: IRIX64 6.5(modi4) 64-bit
Diffstat (limited to 'src/H5Tconv.c')
-rw-r--r--src/H5Tconv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index 0ddfedb..65b7c93 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -2351,11 +2351,12 @@ H5T_conv_vlen(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts,
/* If we are writing and there is a nested VL type, read
* the sequence into the background buffer */
if(dst->u.vlen.f!=NULL && H5T_detect_class(dst->parent,H5T_VLEN) && bg!=NULL) {
- UINT32DECODE(bg, bg_seq_len);
+ uint8_t *tmp=bg;
+ UINT32DECODE(tmp, bg_seq_len);
if(bg_seq_len>0) {
- H5F_addr_decode(dst->u.vlen.f, (const uint8_t **)&bg,
+ H5F_addr_decode(dst->u.vlen.f, (const uint8_t **)&tmp,
&(bg_hobjid.addr));
- INT32DECODE(bg, bg_hobjid.idx);
+ INT32DECODE(tmp, bg_hobjid.idx);
if(H5HG_read(dst->u.vlen.f,&bg_hobjid,tmp_buf)==NULL)
HRETURN_ERROR (H5E_DATATYPE, H5E_READERROR, FAIL,
"can't read VL sequence into background buffer");