From 01d25de8a7c3846f69510496dc456704fa43f586 Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Thu, 2 May 2002 14:11:20 -0500 Subject: [svn-r5327] Purpose: code clean-up,for erasing windows warnings Description: Solution: Platforms tested: linux 2.2.18 --- test/dsets.c | 2 +- test/dtypes.c | 4 ++-- test/fillval.c | 6 +++--- test/h5test.c | 4 ++-- test/hyperslab.c | 6 +++--- test/tarray.c | 8 ++++---- test/tattr.c | 2 +- test/testhdf5.c | 2 +- test/tgenprop.c | 2 +- test/th5s.c | 4 ++-- test/trefer.c | 16 ++++++++-------- test/tselect.c | 12 ++++++------ test/tvltypes.c | 4 ++-- 13 files changed, 36 insertions(+), 36 deletions(-) diff --git a/test/dsets.c b/test/dsets.c index 2642bd3..5100c97 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -437,7 +437,7 @@ test_compression(hid_t file) for (i=n=0; i=cur_size[j]) { odd = 1; } else { - odd += hs_offset[j]%2; + odd += (int)(hs_offset[j]%2); } } diff --git a/test/h5test.c b/test/h5test.c index d36a61b..2e18527 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -525,7 +525,7 @@ h5_fileaccess(void) memset(memb_map, 0, sizeof memb_map); memset(memb_fapl, 0, sizeof memb_fapl); - memset(memb_name, 0, sizeof memb_name); + memset((void*)(&memb_name[0]), 0, sizeof memb_name); memset(memb_addr, 0, sizeof memb_addr); assert(strlen(multi_letters)==H5FD_MEM_NTYPES); @@ -543,7 +543,7 @@ h5_fileaccess(void) } else if (!strcmp(name, "family")) { /* Family of files, each 1MB and using the default driver */ if ((val=strtok(NULL, " \t\n\r"))) { - fam_size = strtod(val, NULL) * 1024*1024; + fam_size = (hsize_t)(strtod(val, NULL) * 1024*1024); } if (H5Pset_fapl_family(fapl, fam_size, H5P_DEFAULT)<0) return -1; } else if (!strcmp(name, "log")) { diff --git a/test/hyperslab.c b/test/hyperslab.c index ea11436..2fd1de5 100644 --- a/test/hyperslab.c +++ b/test/hyperslab.c @@ -212,13 +212,13 @@ test_fill(size_t nx, size_t ny, size_t nz, * original * fill values and add the new ones. */ ref_value = init_full(dst, nx, ny, nz); - for (u=dst_offset[0]; + for (u=(size_t)dst_offset[0]; u