summaryrefslogtreecommitdiffstats
path: root/src/H5Pdcpl.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-14 19:33:08 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-14 19:33:08 (GMT)
commitffbd43d88b496f1ee745aaeb5fd6d2117f510b82 (patch)
treec2c273eff29abf9a62be4ba9ceb48cedfa053719 /src/H5Pdcpl.c
parent3247aa351eb300b408e64be3a0b81910374d1327 (diff)
downloadhdf5-ffbd43d88b496f1ee745aaeb5fd6d2117f510b82.zip
hdf5-ffbd43d88b496f1ee745aaeb5fd6d2117f510b82.tar.gz
hdf5-ffbd43d88b496f1ee745aaeb5fd6d2117f510b82.tar.bz2
[svn-r8684] Purpose:
Code optimization Description: Use 'size_t' instead of 'hsize_t' to track the number of elements in memory buffers, especially for type conversion. Platforms tested: Solaris 2.7 (arabica) FreeBSD 4.10 (sleipnir) w/parallel Too minor to require h5committest
Diffstat (limited to 'src/H5Pdcpl.c')
-rw-r--r--src/H5Pdcpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c
index 8d71e0b..6466c3e 100644
--- a/src/H5Pdcpl.c
+++ b/src/H5Pdcpl.c
@@ -1300,7 +1300,7 @@ H5Pget_fill_value(hid_t plist_id, hid_t type_id, void *value/*out*/)
HDmemcpy(buf, fill.buf, H5T_get_size(fill.type));
/* Do the conversion */
- if (H5T_convert(tpath, src_id, type_id, (hsize_t)1, 0, 0, buf, bkg, H5AC_dxpl_id)<0)
+ if (H5T_convert(tpath, src_id, type_id, 1, 0, 0, buf, bkg, H5AC_dxpl_id)<0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "data type conversion failed");
if (buf!=value)
HDmemcpy(value, buf, H5T_get_size(type));