mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Fix fmt.
This commit is contained in:
parent
ba6b225761
commit
78cf0b8d2e
1 changed files with 4 additions and 5 deletions
|
@ -796,11 +796,10 @@ pub fn build_exp_literal<'a, 'ctx, 'env>(
|
||||||
|
|
||||||
Decimal(int) => {
|
Decimal(int) => {
|
||||||
let (upper_bits, lower_bits) = int.as_bits();
|
let (upper_bits, lower_bits) = int.as_bits();
|
||||||
env
|
env.context
|
||||||
.context
|
.i128_type()
|
||||||
.i128_type()
|
.const_int_arbitrary_precision(&[lower_bits, upper_bits as u64])
|
||||||
.const_int_arbitrary_precision(&[lower_bits, upper_bits as u64])
|
.into()
|
||||||
.into()
|
|
||||||
}
|
}
|
||||||
Bool(b) => env.context.bool_type().const_int(*b as u64, false).into(),
|
Bool(b) => env.context.bool_type().const_int(*b as u64, false).into(),
|
||||||
Byte(b) => env.context.i8_type().const_int(*b as u64, false).into(),
|
Byte(b) => env.context.i8_type().const_int(*b as u64, false).into(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue