Memmap: Cleanup code

This shouldn't have any effect on the behavior of the memmap, it should just be more readable now.
Assuming the diff isn't throwing me off, this `i` can be inlined with the for loop now.