Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 0367eeb

Browse files
WalterBrightdlang-bot
authored andcommitted
relax alignment of Cent for 32 bit targets
1 parent cbaf0fb commit 0367eeb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/int128.d

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ alias I = long;
1818
alias U = ulong;
1919
enum Ubits = uint(U.sizeof * 8);
2020

21-
align(16) struct Cent
21+
version (X86_64) private enum Cent_alignment = 16;
22+
else private enum Cent_alignment = (size_t.sizeof * 2);
23+
24+
align(Cent_alignment) struct Cent
2225
{
2326
U lo; // low 64 bits
2427
U hi; // high 64 bits

0 commit comments

Comments
 (0)