feat(gen_dev): add match case for Float64 to Backend

This commit is contained in:
rvcas 2021-05-16 19:10:01 -04:00
parent 365f1a1f7c
commit 92505444dd

View File

@ -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)),
} }
} }