C - rychly dotaz

Jaroslav Buchta jaroslav.buchta na hascomp.cz
Středa Březen 21 09:09:50 CET 2018


#define SECTOR_FSRECSZ 128

typedef struct
{
     uint32_t id;
     union
     {
         struct
         {
             uint8_t b[SECTOR_FSRECSZ-4-4];
             uint32_t crc32;
         };
         struct
         {
             time64_ms tmLastSms;
         };
     };
} FLASHFSREC;


proc je sizeof(FLASHFSREC) == 136 a ne 128???

Asi jsem neco prehlednul, kdyz odstranim tmLastSms je to 128...



Další informace o konferenci Hw-list