summaryrefslogtreecommitdiffstats
path: root/src/H5S.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-04-18 21:21:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-04-18 21:21:35 (GMT)
commitaf6276f6543d06c9f18939cc8b810f57397b7a67 (patch)
treeef2c50b7bd22d0967fdab6075864577746e4b147 /src/H5S.c
parentd8b08dbc85dfe28d926caf3c03e9d60c63d80794 (diff)
downloadhdf5-af6276f6543d06c9f18939cc8b810f57397b7a67.zip
hdf5-af6276f6543d06c9f18939cc8b810f57397b7a67.tar.gz
hdf5-af6276f6543d06c9f18939cc8b810f57397b7a67.tar.bz2
[svn-r10628] Purpose:
Code cleanup Description: Clean up various warnings reported by the Windows team. Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'src/H5S.c')
-rw-r--r--src/H5S.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5S.c b/src/H5S.c
index 04900f4..de7da2e 100644
--- a/src/H5S.c
+++ b/src/H5S.c
@@ -1730,7 +1730,8 @@ static herr_t
H5S_encode(H5S_t *obj, unsigned char *buf, size_t *nalloc)
{
size_t extent_size;
- hssize_t select_size;
+ hssize_t sselect_size;
+ size_t select_size;
H5F_t f; /* fake file structure*/
herr_t ret_value = SUCCEED;
@@ -1744,8 +1745,9 @@ H5S_encode(H5S_t *obj, unsigned char *buf, size_t *nalloc)
if((extent_size=H5O_raw_size(H5O_SDSPACE_ID, &f, obj))==0)
HGOTO_ERROR(H5E_DATASPACE, H5E_BADSIZE, FAIL, "can't find dataspace size");
- if((select_size=H5S_SELECT_SERIAL_SIZE(obj))<0)
+ if((sselect_size=H5S_SELECT_SERIAL_SIZE(obj))<0)
HGOTO_ERROR(H5E_DATASPACE, H5E_BADSIZE, FAIL, "can't find dataspace selection size");
+ H5_ASSIGN_OVERFLOW(select_size,sselect_size,hssize_t,size_t);
/* Verify the size of buffer. If it's not big enough, simply return the
* right size without filling the buffer. */