Skip to content

Commit

Permalink
Update src/librustc_mir/interpret/place.rs
Browse files Browse the repository at this point in the history
Co-Authored-By: Ralf Jung <post@ralfj.de>
  • Loading branch information
oli-obk and RalfJung authored Dec 23, 2019
1 parent 056dff5 commit 5b8df34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/interpret/place.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ where
}

let index = if from_end {
assert!(offset - 1 < min_length);
assert!(0 < offset && offset - 1 < min_length);
n - u64::from(offset)
} else {
assert!(offset < min_length);
Expand Down

0 comments on commit 5b8df34

Please sign in to comment.