From 5e32af0ceb826dc1d33ae43ad0fc2169b9e3a179 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Thu, 13 Jan 2022 21:08:36 +0800 Subject: [PATCH] Fix unchecked build. --- src/eval/target.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) }