From f809c2d3529f9241b39f90c69c5d2c1b24cbd0b9 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 8 Nov 2003 09:16:04 -0500 Subject: [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 --- src/H5Shyper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- cgit v0.12