diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-01-17 20:34:14 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-01-17 20:34:14 (GMT) |
commit | 1208e94eff8223d5c68bd7d50c4b885df222122a (patch) | |
tree | e740ea0e3b23176f5e194d7e98def93ec33d5b0e /src/H5Sselect.c | |
parent | 6f667500c1f163a7fd9cb15945078c3fef622ab1 (diff) | |
download | hdf5-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/H5Sselect.c')
-rw-r--r-- | src/H5Sselect.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c index 77068a0..8d808c5 100644 --- a/src/H5Sselect.c +++ b/src/H5Sselect.c @@ -1216,7 +1216,14 @@ H5S_select_read(H5F_t *f, const H5O_layout_t *layout, H5P_genplist_t *dc_plist, mem_iter_init=1; /* Memory selection iteration info has been initialized */ /* Get number of bytes in selection */ - maxbytes=(*file_space->select.get_npoints)(file_space)*elmt_size; +#ifndef NDEBUG + { + hsize_t tmp_maxbytes=(*file_space->select.get_npoints)(file_space)*elmt_size; + H5_ASSIGN_OVERFLOW(maxbytes,tmp_maxbytes,hsize_t,size_t); + } +#else /* NDEBUG */ + maxbytes=(size_t)((*file_space->select.get_npoints)(file_space)*elmt_size); +#endif /* NDEBUG */ /* Initialize sequence counts */ curr_mem_seq=curr_file_seq=0; @@ -1443,7 +1450,14 @@ H5S_select_write(H5F_t *f, H5O_layout_t *layout, H5P_genplist_t *dc_plist, mem_iter_init=1; /* Memory selection iteration info has been initialized */ /* Get number of bytes in selection */ - maxbytes=(*file_space->select.get_npoints)(file_space)*elmt_size; +#ifndef NDEBUG + { + hsize_t tmp_maxbytes=(*file_space->select.get_npoints)(file_space)*elmt_size; + H5_ASSIGN_OVERFLOW(maxbytes,tmp_maxbytes,hsize_t,size_t); + } +#else /* NDEBUG */ + maxbytes=(size_t)((*file_space->select.get_npoints)(file_space)*elmt_size); +#endif /* NDEBUG */ /* Initialize sequence counts */ curr_mem_seq=curr_file_seq=0; |