| ... | @@ -86,7 +86,7 @@ pub fn subMaybeWrap( | ... | @@ -86,7 +86,7 @@ pub fn subMaybeWrap( |
| 86 | ) CompileError!Value { | 86 | ) CompileError!Value { |
| 87 | const zcu = sema.pt.zcu; | 87 | const zcu = sema.pt.zcu; |
| 88 | if (lhs.isUndef(zcu)) return lhs; | 88 | if (lhs.isUndef(zcu)) return lhs; |
| 89 | if (lhs.isUndef(zcu)) return rhs; | 89 | if (rhs.isUndef(zcu)) return rhs; |
| 90 | switch (ty.zigTypeTag(zcu)) { | 90 | switch (ty.zigTypeTag(zcu)) { |
| 91 | .int, .comptime_int => return (try intSubWithOverflow(sema, lhs, rhs, ty)).wrapped_result, | 91 | .int, .comptime_int => return (try intSubWithOverflow(sema, lhs, rhs, ty)).wrapped_result, |
| 92 | .float, .comptime_float => return floatSub(sema, lhs, rhs, ty), | 92 | .float, .comptime_float => return floatSub(sema, lhs, rhs, ty), |
| ... | @@ -105,7 +105,7 @@ pub fn mulMaybeWrap( | ... | @@ -105,7 +105,7 @@ pub fn mulMaybeWrap( |
| 105 | ) CompileError!Value { | 105 | ) CompileError!Value { |
| 106 | const zcu = sema.pt.zcu; | 106 | const zcu = sema.pt.zcu; |
| 107 | if (lhs.isUndef(zcu)) return lhs; | 107 | if (lhs.isUndef(zcu)) return lhs; |
| 108 | if (lhs.isUndef(zcu)) return rhs; | 108 | if (rhs.isUndef(zcu)) return rhs; |
| 109 | switch (ty.zigTypeTag(zcu)) { | 109 | switch (ty.zigTypeTag(zcu)) { |
| 110 | .int, .comptime_int => return (try intMulWithOverflow(sema, lhs, rhs, ty)).wrapped_result, | 110 | .int, .comptime_int => return (try intMulWithOverflow(sema, lhs, rhs, ty)).wrapped_result, |
| 111 | .float, .comptime_float => return floatMul(sema, lhs, rhs, ty), | 111 | .float, .comptime_float => return floatMul(sema, lhs, rhs, ty), |