summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-11-08 14:16:04 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-11-08 14:16:04 (GMT)
commitf809c2d3529f9241b39f90c69c5d2c1b24cbd0b9 (patch)
tree52ec4c5bc21a9359a15c2e7944bb532ae6eccbd0 /src
parenta1ee1c91907ce4f43e3f4392b3b2141d444d67f6 (diff)
downloadhdf5-f809c2d3529f9241b39f90c69c5d2c1b24cbd0b9.zip
hdf5-f809c2d3529f9241b39f90c69c5d2c1b24cbd0b9.tar.gz
hdf5-f809c2d3529f9241b39f90c69c5d2c1b24cbd0b9.tar.bz2
[svn-r7826] Purpose:
Code cleanup Description: Cleanup compiler warning by breaking apart the cast checking. Platforms tested: FreeBSD 4.9 (sleipnir) too minor to need h5committest
Diffstat (limited to 'src')
-rw-r--r--src/H5Shyper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c
index 01e65ae..c3be043 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -2160,7 +2160,8 @@ H5S_hyper_serialize (const H5S_t *space, uint8_t *buf)
len+=4;
/* Add 8 bytes times the rank for each hyperslab selected */
- H5_CHECK_OVERFLOW((8*space->extent.u.simple.rank*block_count),hssize_t,size_t);
+ H5_CHECK_OVERFLOW(block_count,hssize_t,hsize_t);
+ H5_CHECK_OVERFLOW((8*space->extent.u.simple.rank*(hsize_t)block_count),hsize_t,size_t);
len+=(size_t)(8*space->extent.u.simple.rank*block_count);
/* Encode each hyperslab in selection */