mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 07:46:01 +02:00
More fixes for bigint duration (#3557)
This commit is contained in:
@ -477,11 +477,7 @@ pub fn compute_values(
|
||||
}
|
||||
|
||||
let y = y.as_bigint_and_exponent();
|
||||
let z = y.0.to_i64();
|
||||
match z {
|
||||
Some(z) => Ok(x / z),
|
||||
None => Err((left.type_name(), right.type_name())),
|
||||
}
|
||||
Ok(x / y.0)
|
||||
}
|
||||
_ => Err((left.type_name(), right.type_name())),
|
||||
}?;
|
||||
|
Reference in New Issue
Block a user