mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 03:03:09 +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 {
|
fn floatOpAllowed(tag: Zir.Inst.Tag) bool {
|
||||||
// extend this swich as additional operators are implemented
|
// extend this swich as additional operators are implemented
|
||||||
return switch (tag) {
|
return switch (tag) {
|
||||||
.add, .sub => true,
|
.add, .sub, .mul, .div => true,
|
||||||
else => false,
|
else => false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user