summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-03-04 16:30:56 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-03-04 16:30:56 (GMT)
commit2b323ed454f0bba86683b4b04c7baa5cc8fe34e4 (patch)
treec73b001f5af2f1d96cac0d7cf11b5617712ebdf6 /test
parent7bdea74ca98dbdc90877790d4bc9c1f71f6697b7 (diff)
downloadhdf5-2b323ed454f0bba86683b4b04c7baa5cc8fe34e4.zip
hdf5-2b323ed454f0bba86683b4b04c7baa5cc8fe34e4.tar.gz
hdf5-2b323ed454f0bba86683b4b04c7baa5cc8fe34e4.tar.bz2
[svn-r304] ./test/hyperslab.c
Added UL->L casts in six places to quiet warnings on Irix -64.
Diffstat (limited to 'test')
-rw-r--r--test/hyperslab.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/hyperslab.c b/test/hyperslab.c
index 0f9f431..746be52 100644
--- a/test/hyperslab.c
+++ b/test/hyperslab.c
@@ -790,8 +790,8 @@ test_transpose(size_t nx, size_t ny)
size[1] = ny;
src_stride[0] = 0;
src_stride[1] = sizeof(*src);
- dst_stride[0] = (1 - nx * ny) * sizeof(*src);
- dst_stride[1] = nx * sizeof(*src);
+ dst_stride[0] = (ssize_t)((1 - nx * ny) * sizeof(*src));
+ dst_stride[1] = (ssize_t)(nx * sizeof(*src));
/* Copy and transpose */
if (nx == ny) {
@@ -891,7 +891,7 @@ test_sub_super(size_t nx, size_t ny)
/* Setup */
size[0] = nx;
size[1] = ny;
- src_stride[0] = 2 * ny;
+ src_stride[0] = (ssize_t)(2 * ny);
src_stride[1] = 2;
dst_stride[0] = 0;
dst_stride[1] = 1;
@@ -939,9 +939,9 @@ test_sub_super(size_t nx, size_t ny)
src_stride[1] = 1;
src_stride[2] = 0;
src_stride[3] = 0;
- dst_stride[0] = 2 * ny;
- dst_stride[1] = 2 * sizeof(uint8) - 4 * ny;
- dst_stride[2] = 2 * ny - 2 * sizeof(uint8);
+ dst_stride[0] = (ssize_t)(2 * ny);
+ dst_stride[1] = (ssize_t)(2 * sizeof(uint8) - 4 * ny);
+ dst_stride[2] = (ssize_t)(2 * ny - 2 * sizeof(uint8));
dst_stride[3] = sizeof(uint8);
/* Copy */