summaryrefslogtreecommitdiffstats
path: root/test/cache_common.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-01-17 23:37:24 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-01-17 23:37:24 (GMT)
commitfa11904aabebe64af2d90be3b3203203569e0bcb (patch)
tree629c7fff8a54dbf7a70bd3850092ba94fdb96ab3 /test/cache_common.c
parent6d50253be1f54fcd3074ab699bdd6e3b0baa2d58 (diff)
downloadhdf5-fa11904aabebe64af2d90be3b3203203569e0bcb.zip
hdf5-fa11904aabebe64af2d90be3b3203203569e0bcb.tar.gz
hdf5-fa11904aabebe64af2d90be3b3203203569e0bcb.tar.bz2
[svn-r13151] Description:
Clean up compiler warnings, esp. on Windows Tested on: FreeBSD/32 6.2 (duty) Mac OS X/32 10.4.8 (amazon)
Diffstat (limited to 'test/cache_common.c')
-rw-r--r--test/cache_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cache_common.c b/test/cache_common.c
index 8cec96c..c3211f8 100644
--- a/test/cache_common.c
+++ b/test/cache_common.c
@@ -281,14 +281,14 @@ addr_to_type_and_index(haddr_t addr,
if ( addr >= PICO_ALT_BASE_ADDR ) {
- idx = (addr - alt_base_addrs[type]) / entry_sizes[type];
+ idx = (int32_t)((addr - alt_base_addrs[type]) / entry_sizes[type]);
HDassert( ( idx >= 0 ) && ( idx <= max_indices[type] ) );
HDassert( !((entries[type])[idx].at_main_addr) );
HDassert( addr == (entries[type])[idx].alt_addr );
} else {
- idx = (addr - base_addrs[type]) / entry_sizes[type];
+ idx = (int32_t)((addr - base_addrs[type]) / entry_sizes[type]);
HDassert( ( idx >= 0 ) && ( idx <= max_indices[type] ) );
HDassert( (entries[type])[idx].at_main_addr );
HDassert( addr == (entries[type])[idx].main_addr );