aboutsummaryrefslogtreecommitdiff
path: root/src/Sema
diff options
context:
space:
mode:
authorMaksat <maksat.munaitpasov@cantor.fr>2025-04-07 01:30:55 +0200
committerMatthew Lugg <mlugg@mlugg.co.uk>2025-04-07 16:50:28 +0100
commit499550902824ad8862cd43f972fdb052df531e2c (patch)
tree843a2d9f6f86c2d80a40f1cffa57cd97a2a4c342 /src/Sema
parentf13292abbc1dfddb0be73e1e9747656f8432c16e (diff)
downloadzig-499550902824ad8862cd43f972fdb052df531e2c.tar.gz
zig-499550902824ad8862cd43f972fdb052df531e2c.zip
#23177, maintainter 'mlugg' wanted to fix that typo, 4 weeks without changes, might be forgotten
Diffstat (limited to 'src/Sema')
-rw-r--r--src/Sema/arith.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sema/arith.zig b/src/Sema/arith.zig
index 0c66ad9a91..cc88cd6ade 100644
--- a/src/Sema/arith.zig
+++ b/src/Sema/arith.zig
@@ -67,7 +67,7 @@ pub fn addMaybeWrap(
) 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 intAddWithOverflow(sema, lhs, rhs, ty)).wrapped_result,
.float, .comptime_float => return floatAdd(sema, lhs, rhs, ty),