mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
make round return an integer
This commit is contained in:
parent
1efe3e9929
commit
64b633bea6
5 changed files with 21 additions and 8 deletions
|
@ -540,10 +540,10 @@ impl<'a> LowLevelCall<'a> {
|
|||
backend.code_builder.f64_floor();
|
||||
}
|
||||
(F32, NumRound) => {
|
||||
self.load_args_and_call_zig(backend, &bitcode::NUM_ROUND[FloatWidth::F32])
|
||||
self.load_args_and_call_zig(backend, &bitcode::NUM_ROUND_F32[IntWidth::I32])
|
||||
}
|
||||
(F64, NumRound) => {
|
||||
self.load_args_and_call_zig(backend, &bitcode::NUM_ROUND[FloatWidth::F64])
|
||||
self.load_args_and_call_zig(backend, &bitcode::NUM_ROUND_F64[IntWidth::I64])
|
||||
}
|
||||
_ => internal_error!("Invalid argument type for ceiling: {:?}", arg_type),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue