mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Cast i64 to f64 instead of using builtin bitcode
This commit is contained in:
parent
d37ed89653
commit
a7da54516a
2 changed files with 9 additions and 4 deletions
|
@ -6,8 +6,8 @@
|
|||
|
||||
mod libm;
|
||||
|
||||
/// TODO replace this with a normal Inkwell build_cast call - this was just
|
||||
/// used as a proof of concept for getting bitcode importing working!
|
||||
/// TODO this is no longer used. Feel free to delete it the next time
|
||||
/// we need to rebuild builtins.bc!
|
||||
#[no_mangle]
|
||||
pub fn i64_to_f64_(num: i64) -> f64 {
|
||||
num as f64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue