diff --git a/src/eval/target.rs b/src/eval/target.rs index a2462212..e8efefb9 100644 --- a/src/eval/target.rs +++ b/src/eval/target.rs @@ -61,7 +61,7 @@ pub fn calc_index( } }); #[cfg(feature = "unchecked")] - return Ok(actual - (start.abs() as usize)); + return Ok(length - (start.abs() as usize)); } else { Err(err().into()) }