mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
#23177, maintainter 'mlugg' wanted to fix that typo, 4 weeks without changes, might be forgotten
This commit is contained in:
parent
f13292abbc
commit
4995509028
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ pub fn addMaybeWrap(
|
||||||
) CompileError!Value {
|
) CompileError!Value {
|
||||||
const zcu = sema.pt.zcu;
|
const zcu = sema.pt.zcu;
|
||||||
if (lhs.isUndef(zcu)) return lhs;
|
if (lhs.isUndef(zcu)) return lhs;
|
||||||
if (lhs.isUndef(zcu)) return rhs;
|
if (rhs.isUndef(zcu)) return rhs;
|
||||||
switch (ty.zigTypeTag(zcu)) {
|
switch (ty.zigTypeTag(zcu)) {
|
||||||
.int, .comptime_int => return (try intAddWithOverflow(sema, lhs, rhs, ty)).wrapped_result,
|
.int, .comptime_int => return (try intAddWithOverflow(sema, lhs, rhs, ty)).wrapped_result,
|
||||||
.float, .comptime_float => return floatAdd(sema, lhs, rhs, ty),
|
.float, .comptime_float => return floatAdd(sema, lhs, rhs, ty),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue