summaryrefslogtreecommitdiffstats
path: root/src/H5Vprivate.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-03-22 18:11:24 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-03-22 18:11:24 (GMT)
commit3424f9f5d1c45e739480e16ab3faa272ca1569f8 (patch)
tree9137c6377285d8576d35205f9e390dbcff40fa57 /src/H5Vprivate.h
parentbd73819e2682bebcde6e9c3f1183acdb9608e6ce (diff)
downloadhdf5-3424f9f5d1c45e739480e16ab3faa272ca1569f8.zip
hdf5-3424f9f5d1c45e739480e16ab3faa272ca1569f8.tar.gz
hdf5-3424f9f5d1c45e739480e16ab3faa272ca1569f8.tar.bz2
[svn-r12128] Purpose:
Code cleanup Description: Clean up some compiler warnings (esp. those flagged on Windows builds) Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'src/H5Vprivate.h')
-rw-r--r--src/H5Vprivate.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/H5Vprivate.h b/src/H5Vprivate.h
index 71f62b0..942381d 100644
--- a/src/H5Vprivate.h
+++ b/src/H5Vprivate.h
@@ -347,16 +347,16 @@ H5V_log2_gen(hsize_t n)
unsigned r = 0; /* r will be log2(n) */
register unsigned int t, tt, ttt; /* temporaries */
- if((ttt = n >> 32))
- if((tt = n >> 48))
- r = (t = n >> 56) ? 56 + LogTable256[t] : 48 + LogTable256[tt & 0xFF];
+ if((ttt = (unsigned)(n >> 32)))
+ if((tt = (unsigned)(n >> 48)))
+ r = (t = (unsigned)(n >> 56)) ? 56 + LogTable256[t] : 48 + LogTable256[tt & 0xFF];
else
- r = (t = n >> 40) ? 40 + LogTable256[t] : 32 + LogTable256[ttt & 0xFF];
+ r = (t = (unsigned)(n >> 40)) ? 40 + LogTable256[t] : 32 + LogTable256[ttt & 0xFF];
else
- if((tt = n >> 16))
- r = (t = n >> 24) ? 24 + LogTable256[t] : 16 + LogTable256[tt & 0xFF];
+ if((tt = (unsigned)(n >> 16)))
+ r = (t = (unsigned)(n >> 24)) ? 24 + LogTable256[t] : 16 + LogTable256[tt & 0xFF];
else
- r = (t = n >> 8) ? 8 + LogTable256[t] : LogTable256[n];
+ r = (t = (unsigned)(n >> 8)) ? 8 + LogTable256[t] : LogTable256[n];
return(r);
} /* H5V_log2_gen() */