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 20:32:17+02:00
logfa684bf42ff8b4df31096db3924873cf9433499d
tree2c227687f71cec7fdc67bd0ecd342cf237172424
parenta43973b3361946e233ea679ff6628b1bfc4579d1

Make *24 and *48 extern-compatible for ez80


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

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