Skip to content

Commit 339e441

Browse files
committed
Edit ez80 ptrAbiAlignment comment
1 parent d2e0346 commit 339e441

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Type.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,8 @@ fn abiSizeInnerOptional(
16031603
}
16041604

16051605
pub fn ptrAbiAlignment(target: *const Target) Alignment {
1606-
// ez80 has 24-bit pointers, and the alignment of pointers is 1.
1606+
// The eZ80 has 24-bit pointers, which aren't exact powers of two, tripping
1607+
// the assert. The alignment of eZ80 pointers is 1, so we bypass the check.
16071608
if (target.cpu.arch == .ez80) return .fromByteUnits(1);
16081609
return Alignment.fromNonzeroByteUnits(@divExact(target.ptrBitWidth(), 8));
16091610
}

0 commit comments

Comments
 (0)