1
Fork 0

Don't invalidate one byte beyond the end

This commit is contained in:
Oliver Schneider 2018-05-30 12:05:56 +02:00
parent 665866d398
commit 1236d57d84

View file

@ -844,7 +844,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
}
// Forget all the relocations.
alloc.relocations.remove_range(first ..= last);
alloc.relocations.remove_range(first .. last);
Ok(())
}