Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/Sema/arith.zig
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ pub fn subMaybeWrap(
) CompileError!Value {
const zcu = sema.pt.zcu;
if (lhs.isUndef(zcu)) return lhs;
if (lhs.isUndef(zcu)) return rhs;
if (rhs.isUndef(zcu)) return rhs;
switch (ty.zigTypeTag(zcu)) {
.int, .comptime_int => return (try intSubWithOverflow(sema, lhs, rhs, ty)).wrapped_result,
.float, .comptime_float => return floatSub(sema, lhs, rhs, ty),
Expand All @@ -105,7 +105,7 @@ pub fn mulMaybeWrap(
) CompileError!Value {
const zcu = sema.pt.zcu;
if (lhs.isUndef(zcu)) return lhs;
if (lhs.isUndef(zcu)) return rhs;
if (rhs.isUndef(zcu)) return rhs;
switch (ty.zigTypeTag(zcu)) {
.int, .comptime_int => return (try intMulWithOverflow(sema, lhs, rhs, ty)).wrapped_result,
.float, .comptime_float => return floatMul(sema, lhs, rhs, ty),
Expand Down