summaryrefslogtreecommitdiffstats
path: root/src/H5V.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-05-01 16:32:27 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-05-01 16:32:27 (GMT)
commit4ad96d6e8abdee38d99f9950ea9f31b3175d6d28 (patch)
treed66ca60955beaa79bba97fcc82fb69006451c0d6 /src/H5V.c
parentbc2028c55f80da9efd8fb6a2703f4eb99933192c (diff)
downloadhdf5-4ad96d6e8abdee38d99f9950ea9f31b3175d6d28.zip
hdf5-4ad96d6e8abdee38d99f9950ea9f31b3175d6d28.tar.gz
hdf5-4ad96d6e8abdee38d99f9950ea9f31b3175d6d28.tar.bz2
[svn-r5314] Purpose:
Code cleanup Description: Cleanup some warnings from gcc 3.1 Platforms tested: FreeBSD 4.5 (sleipnir)
Diffstat (limited to 'src/H5V.c')
-rw-r--r--src/H5V.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5V.c b/src/H5V.c
index f8f8925..e792585 100644
--- a/src/H5V.c
+++ b/src/H5V.c
@@ -294,7 +294,7 @@ H5V_hyper_stride(unsigned n, const hsize_t *size,
default:
/* others */
for (i=(int)(n-2), acc=1; i>=0; --i) {
- hsize_t tmp = acc * (total_size[i+1] - size[i+1]);
+ tmp = acc * (total_size[i+1] - size[i+1]);
assert (tmp<((hsize_t)1<<(8*sizeof(hssize_t)-1)));
stride[i] = (hssize_t)tmp; /*overflow checked*/
acc *= total_size[i+1];
@@ -633,8 +633,8 @@ H5V_hyper_copy(unsigned n, const hsize_t *_size,
default:
/* others */
for (ii=(int)(n-2), dst_acc=1, src_acc=1; ii>=0; --ii) {
- hsize_t tmp1 = dst_acc * (dst_size[ii+1] - size[ii+1]);
- hsize_t tmp2 = src_acc * (src_size[ii+1] - size[ii+1]);
+ tmp1 = dst_acc * (dst_size[ii+1] - size[ii+1]);
+ tmp2 = src_acc * (src_size[ii+1] - size[ii+1]);
assert (tmp1<((hsize_t)1<<(8*sizeof(hssize_t)-1)));
assert (tmp2<((hsize_t)1<<(8*sizeof(hssize_t)-1)));
dst_stride[ii] = (hssize_t)tmp1; /*overflow checked*/