summaryrefslogtreecommitdiffstats
path: root/src/H5Tconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Tconv.c')
-rw-r--r--src/H5Tconv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index 8cbca15..f63f30d 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -796,7 +796,7 @@ H5T_conv_b_b(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
*-------------------------------------------------------------------------
*/
static herr_t
-H5T_conv_need_bkg (H5T_t *src, H5T_t *dst, H5T_cdata_t *cdata)
+H5T_conv_need_bkg (H5T_t *src, H5T_t *dst, H5T_cdata_t *cdata, H5T_bkg_t bkg_type)
{
FUNC_ENTER (H5T_conv_need_bkg, FAIL);
@@ -805,7 +805,7 @@ H5T_conv_need_bkg (H5T_t *src, H5T_t *dst, H5T_cdata_t *cdata)
assert(cdata);
if (H5T_detect_class(src,H5T_COMPOUND)==TRUE || H5T_detect_class(dst,H5T_COMPOUND)==TRUE)
- cdata->need_bkg = H5T_BKG_YES;
+ cdata->need_bkg = bkg_type;
FUNC_LEAVE (SUCCEED);
}
@@ -931,7 +931,7 @@ H5T_conv_struct_init (H5T_t *src, H5T_t *dst, H5T_cdata_t *cdata)
}
/* Check if we need a background buffer */
- H5T_conv_need_bkg (src, dst, cdata);
+ H5T_conv_need_bkg (src, dst, cdata, H5T_BKG_TEMP);
cdata->recalc = FALSE;
FUNC_LEAVE (SUCCEED);
@@ -1845,7 +1845,7 @@ H5T_conv_vlen(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
assert (H5T_VLEN==dst->type);
/* Check if we need a background buffer */
- H5T_conv_need_bkg (src, dst, cdata);
+ H5T_conv_need_bkg (src, dst, cdata, H5T_BKG_YES);
break;
@@ -2080,7 +2080,7 @@ H5T_conv_array(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
#endif /* LATER */
/* Check if we need a background buffer */
- H5T_conv_need_bkg (src, dst, cdata);
+ H5T_conv_need_bkg (src, dst, cdata, H5T_BKG_YES);
break;