diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-07-01 20:02:47 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-07-01 20:02:47 (GMT) |
commit | e5e786f589896da6f6414da51b56ccc119df8adb (patch) | |
tree | 69c21934ad23b0b71326a8fb8b40c384aca92f24 /test/bittests.c | |
parent | eab58732d86e9219fa9f41f9ab2e30fae94e4a7d (diff) | |
download | hdf5-e5e786f589896da6f6414da51b56ccc119df8adb.zip hdf5-e5e786f589896da6f6414da51b56ccc119df8adb.tar.gz hdf5-e5e786f589896da6f6414da51b56ccc119df8adb.tar.bz2 |
[svn-r8782] Purpose:
Code cleanup
Description:
Clean up almost all warnings from Windows builds.
Platforms tested:
FreeBSD 4.10 (sleipnir) w/parallel
Too minor to require h5committest
Diffstat (limited to 'test/bittests.c')
-rw-r--r-- | test/bittests.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/bittests.c b/test/bittests.c index 2823a56..cb038f7 100644 --- a/test/bittests.c +++ b/test/bittests.c @@ -310,7 +310,7 @@ test_shift (void) /* Look for the ones */ n = H5T_bit_find (vector, 0, 8*sizeof(vector), H5T_BIT_LSB, 1); - if (n!=offset+shift_dist) { + if ((size_t)n!=offset+shift_dist) { H5_FAILED(); printf (" Unable to find first bit in destination " "(n=%d)\n", (int)n); @@ -337,7 +337,7 @@ test_shift (void) /* Look for the ones */ n = H5T_bit_find (vector, 0, 8*sizeof(vector), H5T_BIT_LSB, 1); - if (n!=offset) { + if ((size_t)n!=offset) { H5_FAILED(); printf (" Unable to find first bit in destination " "(n=%d)\n", (int)n); @@ -363,7 +363,7 @@ test_shift (void) if(size % 2 == 0) shift_dist = size; else - shift_dist = -size; + shift_dist = -((ssize_t)size); memset (vector, 0x00, sizeof vector); H5T_bit_set (vector, offset, size, 1); @@ -445,7 +445,7 @@ test_increment (void) /* Look for the one */ n = H5T_bit_find (vector, 0, 8*sizeof(vector), H5T_BIT_LSB, 1); - if (size!=1 && n!=offset+size-1) { + if (size!=1 && (size_t)n!=offset+size-1) { H5_FAILED(); printf (" Unable to find first bit in destination " "(n=%d)\n", (int)n); @@ -529,7 +529,7 @@ test_decrement (void) /* Look for the ones */ n = H5T_bit_find (vector, 0, 8*sizeof(vector), H5T_BIT_LSB, 1); - if (n!=offset) { + if ((size_t)n!=offset) { H5_FAILED(); printf (" Unable to find first bit in destination " "(n=%d)\n", (int)n); @@ -601,7 +601,7 @@ test_negate (void) /* Look for the ones */ n = H5T_bit_find (vector, 0, 8*sizeof(vector), H5T_BIT_LSB, 1); - if (n!=offset) { + if ((size_t)n!=offset) { H5_FAILED(); printf (" Unable to find first bit in destination " "(n=%d)\n", (int)n); |