Fix build.

This commit is contained in:
Stephen Chung
2022-01-15 11:35:44 +08:00
parent 00b189d0c6
commit e24848668a
2 changed files with 5 additions and 5 deletions

View File

@@ -122,7 +122,7 @@ const BITS: usize = std::mem::size_of::<INT>() * 8;
impl BitRange {
pub fn new(value: INT, from: INT, len: INT) -> RhaiResultOf<Self> {
let from = calc_index(BITS, from, true, || {
crate::ERR::ErrorBitFieldBounds(BITS, from, Position::NONE)
crate::ERR::ErrorBitFieldBounds(BITS, from, Position::NONE).into()
})?;
let len = if len < 0 {