mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 07:49:17 +03:00
feat(gen_dev): add match case for Float64 to Backend
This commit is contained in:
parent
365f1a1f7c
commit
92505444dd
@ -237,6 +237,7 @@ where
|
|||||||
// TODO: when this is expanded to floats. deal with typecasting here, and then call correct low level method.
|
// TODO: when this is expanded to floats. deal with typecasting here, and then call correct low level method.
|
||||||
match layout {
|
match layout {
|
||||||
Layout::Builtin(Builtin::Int64) => self.build_num_abs_i64(sym, &args[0]),
|
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)),
|
x => Err(format!("layout, {:?}, not implemented yet", x)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user