Skip to content

Commit

Permalink
Don't invalidate one byte beyond the end
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed May 31, 2018
1 parent 665866d commit 1236d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/interpret/memory.rs
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 1236d57

Please sign in to comment.