mirror of
https://github.com/ziglang/zig.git
synced 2025-12-15 02:33:07 +00:00
stage2 Sema: enable float multiplication and division
This commit is contained in:
parent
6664679c8c
commit
46b9e061e0
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user