diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-04-18 21:21:35 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-04-18 21:21:35 (GMT) |
commit | af6276f6543d06c9f18939cc8b810f57397b7a67 (patch) | |
tree | ef2c50b7bd22d0967fdab6075864577746e4b147 /src/H5S.c | |
parent | d8b08dbc85dfe28d926caf3c03e9d60c63d80794 (diff) | |
download | hdf5-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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. */ |