Commit dd95b98
committed
use a repr(C) struct with a [T; 0] as first field for alignment
This is a bit cleaner than using a union
For discussion about see: kazcw/alignas#1 (comment)1 parent 4551f95 commit dd95b98
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
0 commit comments