Fix unchecked build.

This commit is contained in:
Stephen Chung 2022-01-13 21:08:36 +08:00
parent 510c201d2f
commit 5e32af0ceb

View File

@ -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())
}