authorgravatar for myclevorname@gmail.comSam Connelly <myclevorname@gmail.com> 2026-04-17 08:58:32-04:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-17 22:43:07+02:00
log12d0d392234966c61a2d3f3db7981f5c4c2fced3
tree2abda7614e2e9a1a0ae906c04ebba636e594be55
parentac9bbe4b37210fe1841da81168e9b377b3bb2108
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

Make *24 and *48 extern-compatible for ez80


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

src/Type.zig+1
...@@ -3172,6 +3172,7 @@ pub fn validateExtern(ty: Type, position: ExternPosition, zcu: *const Zcu) bool...@@ -3172,6 +3172,7 @@ pub fn validateExtern(ty: Type, position: ExternPosition, zcu: *const Zcu) bool
3172 },3172 },
3173 .int => switch (ty.intInfo(zcu).bits) {3173 .int => switch (ty.intInfo(zcu).bits) {
3174 0, 8, 16, 32, 64, 128 => true,3174 0, 8, 16, 32, 64, 128 => true,
3175 24, 48 => zcu.getTarget().cpu.arch == .ez80,
3175 else => false,3176 else => false,
3176 },3177 },
3177 .@"fn" => {3178 .@"fn" => {