Skip to content

Commit

Permalink
Merge pull request rust-random#92 from numerodix/master
Browse files Browse the repository at this point in the history
add type annotations (fixes build on 1.7.0-nightly (d5e229057 2016-01…
  • Loading branch information
alexcrichton committed Jan 9, 2016
2 parents b527969 + 59e9d99 commit 8fbf93f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/isaac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ impl IsaacRng {
const MIDPOINT: usize = RAND_SIZE_USIZE / 2;

macro_rules! ind {
($x:expr) => ( self.mem[($x >> 2).0 as usize & (RAND_SIZE_USIZE - 1)] )
($x:expr) => ( self.mem[($x >> 2usize).0 as usize & (RAND_SIZE_USIZE - 1)] )
}

let r = [(0, MIDPOINT), (MIDPOINT, 0)];
Expand Down Expand Up @@ -370,7 +370,7 @@ impl Isaac64Rng {
const MP_VEC: [(usize, usize); 2] = [(0,MIDPOINT), (MIDPOINT, 0)];
macro_rules! ind {
($x:expr) => {
*self.mem.get_unchecked((($x >> 3).0 as usize) & (RAND_SIZE_64 - 1))
*self.mem.get_unchecked((($x >> 3usize).0 as usize) & (RAND_SIZE_64 - 1))
}
}

Expand Down

0 comments on commit 8fbf93f

Please sign in to comment.