mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
Merge remote-tracking branch 'origin/trunk' into box-all-the-things
This commit is contained in:
commit
6543c9bbc6
121 changed files with 950 additions and 904 deletions
|
@ -794,11 +794,13 @@ pub fn build_exp_literal<'a, 'ctx, 'env>(
|
|||
_ => panic!("Invalid layout for float literal = {:?}", layout),
|
||||
},
|
||||
|
||||
Decimal(int) => env
|
||||
.context
|
||||
.i128_type()
|
||||
.const_int(int.0 as u64, false)
|
||||
.into(),
|
||||
Decimal(int) => {
|
||||
let (upper_bits, lower_bits) = int.as_bits();
|
||||
env.context
|
||||
.i128_type()
|
||||
.const_int_arbitrary_precision(&[lower_bits, upper_bits as u64])
|
||||
.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(),
|
||||
Str(str_literal) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue