More fixes for bigint duration (#3557)

This commit is contained in:
JT
2021-06-05 04:54:18 +12:00
committed by GitHub
parent 51890baace
commit 1d0d0425d4
4 changed files with 36 additions and 24 deletions

View File

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