Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rasen-dsl/codegen/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub mod defs;
pub mod functions;
pub mod types;
pub mod operations;
pub mod mul;
pub mod math;
pub mod mul;
pub mod operations;
pub mod types;
5 changes: 3 additions & 2 deletions rasen-dsl/codegen/mul.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ pub fn impl_mul_variant(left_res: Type, right_res: Type) -> Option<TokenStream>
right_res.category,
right_res.ty,
) {
(_, "bool", _, _) | (_, _, _, "bool") |
(Category::SCALAR, _, Category::SCALAR, _) => return None,
(_, "bool", _, _) | (_, _, _, "bool") | (Category::SCALAR, _, Category::SCALAR, _) => {
return None
}

(lc, lt, rc, rt) if lc == rc && lt == rt && left_res.size == right_res.size => (
left_res.name.clone(),
Expand Down
Loading