Hide RocDec implemntation details.

This commit is contained in:
Derek Gustafson 2022-03-07 15:34:02 -05:00
parent 92ace8ff67
commit ba6b225761
No known key found for this signature in database
GPG key ID: 8B8B15EF3CC8410B
8 changed files with 26 additions and 16 deletions

View file

@ -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;