summaryrefslogtreecommitdiffstats
path: root/src/H5Dcontig.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-12-08 18:34:51 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-12-08 18:34:51 (GMT)
commit88c15b1617872ce1672d7333481a5aa32ee23d5a (patch)
treeb3315150ab77826194626d3cd5cf6481badf83e4 /src/H5Dcontig.c
parentbfa65eed0f4f901c14244728ea364966c51e0417 (diff)
downloadhdf5-88c15b1617872ce1672d7333481a5aa32ee23d5a.zip
hdf5-88c15b1617872ce1672d7333481a5aa32ee23d5a.tar.gz
hdf5-88c15b1617872ce1672d7333481a5aa32ee23d5a.tar.bz2
[svn-r11771] Purpose:
Code cleanup Description: Fix a bunch of warnings flagged by Windows compilers. Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'src/H5Dcontig.c')
-rw-r--r--src/H5Dcontig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Dcontig.c b/src/H5Dcontig.c
index bed70d7..21b2e56 100644
--- a/src/H5Dcontig.c
+++ b/src/H5Dcontig.c
@@ -1031,7 +1031,8 @@ H5D_contig_copy(H5F_t *f_src, H5O_layout_t *layout_src,
/* Set up number of bytes to copy, and initial buffer size */
total_nbytes = layout_src->u.contig.size;
- buf_size = MIN(H5D_XFER_MAX_TEMP_BUF_DEF, total_nbytes);
+ H5_CHECK_OVERFLOW(total_nbytes,hsize_t,size_t);
+ buf_size = MIN(H5D_XFER_MAX_TEMP_BUF_DEF, (size_t)total_nbytes);
/* If there's a source datatype, set up type conversion information */
if(dt_src) {