authorgravatar for maksat.munaitpasov@cantor.frMaksat <maksat.munaitpasov@cantor.fr> 2025-04-07 01:30:55+02:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-04-07 16:50:28+01:00
log499550902824ad8862cd43f972fdb052df531e2c
tree843a2d9f6f86c2d80a40f1cffa57cd97a2a4c342
parentf13292abbc1dfddb0be73e1e9747656f8432c16e

#23177, maintainter 'mlugg' wanted to fix that typo, 4 weeks without changes, might be forgotten


1 files changed, 1 insertions(+), 1 deletions(-)

src/Sema/arith.zig+1-1
......@@ -67,7 +67,7 @@ pub fn addMaybeWrap(
6767) CompileError!Value {
6868 const zcu = sema.pt.zcu;
6969 if (lhs.isUndef(zcu)) return lhs;
70 if (lhs.isUndef(zcu)) return rhs;
70 if (rhs.isUndef(zcu)) return rhs;
7171 switch (ty.zigTypeTag(zcu)) {
7272 .int, .comptime_int => return (try intAddWithOverflow(sema, lhs, rhs, ty)).wrapped_result,
7373 .float, .comptime_float => return floatAdd(sema, lhs, rhs, ty),