Merge pull request #92 from numerodix/master
add type annotations (fixes build on 1.7.0-nightly (d5e229057 2016-01…
diff --git a/src/isaac.rs b/src/isaac.rs
index 1b271b5..42de352 100644
--- a/src/isaac.rs
+++ b/src/isaac.rs
@@ -131,7 +131,7 @@
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)];
@@ -370,7 +370,7 @@
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))
}
}