Make it compile on gcc12.

Otherwise there's an error about mismatching alignment
when doing "itsy_bitsy::read<flags_t, *>".
This commit is contained in:
Erik Ogenvik 2022-05-31 22:17:14 +02:00
parent 6b30ae8eae
commit 12d6573a10

View File

@ -101,7 +101,7 @@ namespace itsy_bitsy {
#pragma pack(1) #pragma pack(1)
struct flags_t { struct flags_t {
#else #else
struct __attribute__((packed, aligned(1))) flags_t { struct __attribute__((packed, aligned(4))) flags_t {
#endif #endif
uint8_t C : 1; uint8_t C : 1;
uint8_t N : 1; uint8_t N : 1;