mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Hide RocDec implemntation details.
This commit is contained in:
parent
92ace8ff67
commit
ba6b225761
8 changed files with 26 additions and 16 deletions
|
@ -626,9 +626,8 @@ impl<'a> WasmBackend<'a> {
|
|||
|
||||
match lit {
|
||||
Literal::Decimal(decimal) => {
|
||||
let lower_bits = (decimal.0 & 0xffff_ffff_ffff_ffff) as i64;
|
||||
let upper_bits = (decimal.0 >> 64) as i64;
|
||||
write128(lower_bits, upper_bits);
|
||||
let (upper_bits, lower_bits) = decimal.as_bits();
|
||||
write128(lower_bits as i64, upper_bits);
|
||||
}
|
||||
Literal::Int(x) => {
|
||||
let lower_bits = (*x & 0xffff_ffff_ffff_ffff) as i64;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue