diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2002-05-01 16:32:27 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2002-05-01 16:32:27 (GMT) |
commit | 4ad96d6e8abdee38d99f9950ea9f31b3175d6d28 (patch) | |
tree | d66ca60955beaa79bba97fcc82fb69006451c0d6 /src/H5V.c | |
parent | bc2028c55f80da9efd8fb6a2703f4eb99933192c (diff) | |
download | hdf5-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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*/ |