mikado icon indicating copy to clipboard operation
mikado copied to clipboard

Asserts in `Index` and `IndexMut` impls for `MemoryRegion` are slightly different

Open WaffleLapkin opened this issue 4 years ago • 0 comments

Index:

assert_eq!(index as usize % mem::size_of::<usize>() as usize, 0);

IndexMut:

assert_eq!(index % mem::size_of::<usize>() as u32, 0);

That's a bit strange.

WaffleLapkin avatar Aug 27 '19 11:08 WaffleLapkin