Various compile fixes for android rustup (link still fails).

This commit is contained in:
Glenn Watson 2014-12-18 08:08:38 +10:00
parent 466faac2a5
commit 1a9be88a1d
4 changed files with 77 additions and 67 deletions

View file

@ -169,6 +169,7 @@ pub trait BloomHash {
}
impl BloomHash for int {
#[allow(exceeding_bitshifts)]
#[inline]
fn bloom_hash(&self) -> u32 {
((*self >> 32) ^ *self) as u32
@ -176,6 +177,7 @@ impl BloomHash for int {
}
impl BloomHash for uint {
#[allow(exceeding_bitshifts)]
#[inline]
fn bloom_hash(&self) -> u32 {
((*self >> 32) ^ *self) as u32