From 5febc6bb69502df15bcf2de57ee64db7aa05e052 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Thu, 11 Jul 2002 16:43:52 -0500 Subject: [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 --- src/H5Tconv.c | 7 ++++--- 1 file 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"); -- cgit v0.12