diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-04-18 04:10:09 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-04-18 04:10:09 (GMT) |
commit | 0a29514b9dd967deb64b53b39e12d6b55177b76c (patch) | |
tree | a0a2fce3c7a13fcdf1deed6c022a47bfb5a2cbf1 /test/hyperslab.c | |
parent | 432f394cbbc6f77861501f91dc2fc5c209f3811f (diff) | |
download | hdf5-0a29514b9dd967deb64b53b39e12d6b55177b76c.zip hdf5-0a29514b9dd967deb64b53b39e12d6b55177b76c.tar.gz hdf5-0a29514b9dd967deb64b53b39e12d6b55177b76c.tar.bz2 |
[svn-r8383] 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.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/hyperslab.c b/test/hyperslab.c index 556d2f0..f28da01 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]=(char)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 |