mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-runtime-error
This commit is contained in:
commit
70804e9bec
102 changed files with 253 additions and 645 deletions
|
@ -637,9 +637,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