mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
feat(gen_dev): add match case for Float64 to Backend
This commit is contained in:
parent
365f1a1f7c
commit
92505444dd
1 changed files with 1 additions and 0 deletions
|
@ -237,6 +237,7 @@ where
|
|||
// TODO: when this is expanded to floats. deal with typecasting here, and then call correct low level method.
|
||||
match layout {
|
||||
Layout::Builtin(Builtin::Int64) => self.build_num_abs_i64(sym, &args[0]),
|
||||
Layout::Builtin(Builtin::Float64) => self.build_num_abs_f64(sym, &args[0]),
|
||||
x => Err(format!("layout, {:?}, not implemented yet", x)),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue