diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-05-26 18:56:31 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:47:55 -0700 |
| commit | 1dc01f11401b6ec0be1e7685cdc445d1b10d4f19 (patch) | |
| tree | a64c1aa2d0f7f136325971e01ac1ec4ddd79ef13 /src/codegen/c.zig | |
| parent | 9cd0ca9f482ef7f76d3f3ca683913e9aceaa47fe (diff) | |
| download | zig-1dc01f11401b6ec0be1e7685cdc445d1b10d4f19.tar.gz zig-1dc01f11401b6ec0be1e7685cdc445d1b10d4f19.zip | |
InternPool: fix build-exe and compiler-rt crashes
Diffstat (limited to 'src/codegen/c.zig')
| -rw-r--r-- | src/codegen/c.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig index ab69514ee1..0c5e6e6c48 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -6723,7 +6723,7 @@ fn airReduce(f: *Function, inst: Air.Inst.Index) !CValue { }, .Max => switch (scalar_ty.zigTypeTag(mod)) { .Bool => try mod.intValue(scalar_ty, 0), - .Int => try scalar_ty.minInt(mod), + .Int => try scalar_ty.minInt(mod, scalar_ty), .Float => try mod.floatValue(scalar_ty, std.math.nan_f128), else => unreachable, }, |
