fix most dev backend tests

This commit is contained in:
Folkert 2023-09-11 23:08:46 +02:00
parent 5ca3d3bcf1
commit 89472bf495
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
7 changed files with 120 additions and 53 deletions

View file

@ -2237,7 +2237,7 @@ fn build_int_unary_op<'a, 'ctx, 'env>(
)
}
LayoutRepr::Builtin(Builtin::Decimal) => {
call_bitcode_fn(env, &[arg.into()], &bitcode::DEC_FROM_U64)
call_bitcode_fn(env, &[arg.into()], &bitcode::DEC_FROM_INT[arg_width])
}
_ => internal_error!("There can only be floats here!"),
}