Don't invalidate one byte beyond the end
This commit is contained in:
parent
665866d398
commit
1236d57d84
@ -844,7 +844,7 @@ fn clear_relocations(&mut self, ptr: Pointer, size: Size) -> EvalResult<'tcx> {
|
||||
}
|
||||
|
||||
// Forget all the relocations.
|
||||
alloc.relocations.remove_range(first ..= last);
|
||||
alloc.relocations.remove_range(first .. last);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user