mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-20 03:59:54 +00:00
when on 128-bit numbers
This commit is contained in:
parent
d0f1500dad
commit
47bbef30e8
3 changed files with 37 additions and 3 deletions
|
|
@ -1387,8 +1387,6 @@ fn test_to_equality<'a>(
|
|||
}
|
||||
|
||||
Test::IsInt(test_int, precision) => {
|
||||
// TODO don't downcast i128 here
|
||||
debug_assert!(i128::from_ne_bytes(test_int) <= i64::MAX as i128);
|
||||
let lhs = Expr::Literal(Literal::Int(test_int));
|
||||
let lhs_symbol = env.unique_symbol();
|
||||
stores.push((lhs_symbol, Layout::int_width(precision), lhs));
|
||||
|
|
|
|||
|
|
@ -8957,7 +8957,7 @@ impl NumLiteral {
|
|||
fn to_pattern(&self) -> Pattern<'static> {
|
||||
match *self {
|
||||
NumLiteral::Int(n, w) => Pattern::IntLiteral(n, w),
|
||||
NumLiteral::U128(_) => todo!(),
|
||||
NumLiteral::U128(n) => Pattern::IntLiteral(n, IntWidth::U128),
|
||||
NumLiteral::Float(n, w) => Pattern::FloatLiteral(f64::to_bits(n), w),
|
||||
NumLiteral::Decimal(n) => Pattern::DecimalLiteral(n),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue