summaryrefslogtreecommitdiffstats
path: root/src/H5Fistore.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-01-17 20:34:14 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-01-17 20:34:14 (GMT)
commit1208e94eff8223d5c68bd7d50c4b885df222122a (patch)
treee740ea0e3b23176f5e194d7e98def93ec33d5b0e /src/H5Fistore.c
parent6f667500c1f163a7fd9cb15945078c3fef622ab1 (diff)
downloadhdf5-1208e94eff8223d5c68bd7d50c4b885df222122a.zip
hdf5-1208e94eff8223d5c68bd7d50c4b885df222122a.tar.gz
hdf5-1208e94eff8223d5c68bd7d50c4b885df222122a.tar.bz2
[svn-r6296] Purpose:
Code cleanup Description: Reduce warnings on Windows Platforms tested: FreeBSD 4.7 (sleipnir)
Diffstat (limited to 'src/H5Fistore.c')
-rw-r--r--src/H5Fistore.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Fistore.c b/src/H5Fistore.c
index 5278554..aa88704 100644
--- a/src/H5Fistore.c
+++ b/src/H5Fistore.c
@@ -2431,7 +2431,7 @@ H5F_istore_allocate(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout,
/* Check if there are filters which need to be applied to the chunk */
if (pline.nfilters>0) {
unsigned filter_mask=0;
- size_t buf_size=chunk_size;
+ size_t buf_size=(size_t)chunk_size;
size_t nbytes=(size_t)chunk_size;
/* Push the chunk through the filters */
@@ -2476,7 +2476,8 @@ H5F_istore_allocate(H5F_t *f, hid_t dxpl_id, const H5O_layout_t *layout,
udata.mesg = *layout;
udata.key.filter_mask = 0;
udata.addr = HADDR_UNDEF;
- udata.key.nbytes = chunk_size;
+ H5_CHECK_OVERFLOW(chunk_size,hsize_t,size_t);
+ udata.key.nbytes = (size_t)chunk_size;
for (u=0; u<layout->ndims; u++)
udata.key.offset[u] = chunk_offset[u];