summaryrefslogtreecommitdiffstats
path: root/test/hyperslab.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-04-18 04:10:36 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-04-18 04:10:36 (GMT)
commitd09b08ce39f96d70f1d68a9f2e0313495c784619 (patch)
tree63ba039519b469adb1fffd30261079ae0dcf93f1 /test/hyperslab.c
parent0343b61666f105ca865dcbc0cbcff87f43f5e489 (diff)
downloadhdf5-d09b08ce39f96d70f1d68a9f2e0313495c784619.zip
hdf5-d09b08ce39f96d70f1d68a9f2e0313495c784619.tar.gz
hdf5-d09b08ce39f96d70f1d68a9f2e0313495c784619.tar.bz2
[svn-r8384] Purpose:
Code cleanup Description: Clean up lots of warnings based on those reported from the SGI compilers as well as gcc. Platforms tested: SGI O3900, IRIX64 6.5 (Cheryl's SGI machine) FreeBSD 4.9 (sleipnir) w/ & w/o parallel h5committest
Diffstat (limited to 'test/hyperslab.c')
-rw-r--r--test/hyperslab.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/hyperslab.c b/test/hyperslab.c
index 556d2f0..720dc0f 100644
--- a/test/hyperslab.c
+++ b/test/hyperslab.c
@@ -1077,7 +1077,7 @@ test_array_fill(size_t lo, size_t hi)
/* Setup */
for(u=0; u<ARRAY_FILL_SIZE; u++)
- src[u]=u;
+ src[u]=(int)u;
/* Fill */
for(w=lo; w<=hi; w++) {
@@ -1147,9 +1147,9 @@ test_array_offset_n_calc(size_t n, size_t x, size_t y, size_t z)
/* Check offsets */
for(u=0; u<n; u++) {
/* Get random coordinate */
- coords[0] = HDrandom() % z;
- coords[1] = HDrandom() % y;
- coords[2] = HDrandom() % x;
+ coords[0] = (hssize_t)(HDrandom() % z);
+ coords[1] = (hssize_t)(HDrandom() % y);
+ coords[2] = (hssize_t)(HDrandom() % x);
/* Get offset of coordinate */
off=H5V_array_offset(ARRAY_OFFSET_NDIMS,dims,coords);
@@ -1227,7 +1227,7 @@ main(int argc, char *argv[])
printf("\n");
/* Set the random # seed */
- HDsrandom((unsigned long)time(NULL));
+ HDsrandom((unsigned long)HDtime(NULL));
/*
* Open the library explicitly for thread-safe builds, so per-thread