diff options
author | Quincey Koziol <koziol@koziol.gov> | 2020-03-10 23:37:55 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@koziol.gov> | 2020-03-10 23:37:55 (GMT) |
commit | 04b8cc82a858aeb8a0beb3738984240b528952dc (patch) | |
tree | 708c35662a0be75429403326035b767693640437 /src/H5Tconv.c | |
parent | 9abbdeaa66c70a00b6a7bedee9c76d2493a8e947 (diff) | |
download | hdf5-04b8cc82a858aeb8a0beb3738984240b528952dc.zip hdf5-04b8cc82a858aeb8a0beb3738984240b528952dc.tar.gz hdf5-04b8cc82a858aeb8a0beb3738984240b528952dc.tar.bz2 |
Add routines to query the library's free list sizes and allocation stats.
Diffstat (limited to 'src/H5Tconv.c')
-rw-r--r-- | src/H5Tconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c index 29fd582..2b1283e 100644 --- a/src/H5Tconv.c +++ b/src/H5Tconv.c @@ -3213,7 +3213,7 @@ H5T__conv_vlen(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts, * necessary. If the SEQ_LEN is 0, allocate a minimal size buffer. */ if(!seq_len && !conv_buf) { - conv_buf_size = ((1 / H5T_VLEN_MIN_CONF_BUF_SIZE) + 1) * H5T_VLEN_MIN_CONF_BUF_SIZE; + conv_buf_size = H5T_VLEN_MIN_CONF_BUF_SIZE; if(NULL == (conv_buf = H5FL_BLK_CALLOC(vlen_seq, conv_buf_size))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for type conversion") } /* end if */ |