Skip to content

Commit

Permalink
stage2 Sema: enable float multiplication and division
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimschmidt557 authored and Vexu committed Jun 13, 2021
1 parent 6664679 commit 46b9e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sema.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5402,7 +5402,7 @@ fn analyzeRet(
fn floatOpAllowed(tag: Zir.Inst.Tag) bool {
// extend this swich as additional operators are implemented
return switch (tag) {
.add, .sub => true,
.add, .sub, .mul, .div => true,
else => false,
};
}
Expand Down

0 comments on commit 46b9e06

Please sign in to comment.