authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-06-06 01:53:23+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-06-14 11:29:48+02:00
loga85cb728775375825afe4ebd62c60ae0b361d1e9
tree8e7334d2e00e48493f631006b6a8b6eb8330c634
parent9115f8838672021655f473ba44f33dcaf90b8371

cbe: fix helper call generation for int types that lower to 128-bit ints

closes https://codeberg.org/ziglang/zig/issues/35639

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

src/codegen/c.zig+2-2
...@@ -1977,9 +1977,9 @@ pub const DeclGen = struct {...@@ -1977,9 +1977,9 @@ pub const DeclGen = struct {
1977 }1977 }
1978 switch (CType.classifyInt(ty, zcu)) {1978 switch (CType.classifyInt(ty, zcu)) {
1979 .void => unreachable, // opv1979 .void => unreachable, // opv
1980 .small => try w.print("{c}{d}", .{1980 .small => |s| try w.print("{c}{d}", .{
1981 signAbbrev(ty.intInfo(zcu).signedness),1981 signAbbrev(ty.intInfo(zcu).signedness),
1982 ty.abiSize(zcu) * 8,1982 s.bits(zcu.getTarget()),
1983 }),1983 }),
1984 .big => try w.writeAll("big"),1984 .big => try w.writeAll("big"),
1985 }1985 }