Skip to content

Commit 4f3c19d

Browse files
committed
Merge pull request #92 from numerodix/master
add type annotations (fixes build on 1.7.0-nightly (d5e229057 2016-01…
2 parents 4aa8f5b + 35c48a8 commit 4f3c19d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/isaac.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl IsaacRng {
131131
const MIDPOINT: usize = RAND_SIZE_USIZE / 2;
132132

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

137137
let r = [(0, MIDPOINT), (MIDPOINT, 0)];
@@ -370,7 +370,7 @@ impl Isaac64Rng {
370370
const MP_VEC: [(usize, usize); 2] = [(0,MIDPOINT), (MIDPOINT, 0)];
371371
macro_rules! ind {
372372
($x:expr) => {
373-
*self.mem.get_unchecked((($x >> 3).0 as usize) & (RAND_SIZE_64 - 1))
373+
*self.mem.get_unchecked((($x >> 3usize).0 as usize) & (RAND_SIZE_64 - 1))
374374
}
375375
}
376376

0 commit comments

Comments
 (0)