Skip to content

Commit

Permalink
Remove offsetof since it requires a header
Browse files Browse the repository at this point in the history
  • Loading branch information
evanmiller committed Aug 4, 2021
1 parent fa3472d commit ffff3d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stata/readstat_dta.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ typedef struct dta_117_strl_header_s {
int32_t len;
} dta_117_strl_header_t;

#define SIZEOF_DTA_117_STRL_HEADER_T (offsetof(dta_117_strl_header_t, len) + sizeof(int32_t))
#define SIZEOF_DTA_117_STRL_HEADER_T 13

typedef struct dta_118_strl_header_s {
uint32_t v;
Expand All @@ -40,7 +40,7 @@ typedef struct dta_118_strl_header_s {
int32_t len;
} dta_118_strl_header_t;

#define SIZEOF_DTA_118_STRL_HEADER_T (offsetof(dta_118_strl_header_t, len) + sizeof(int32_t))
#define SIZEOF_DTA_118_STRL_HEADER_T 17

#pragma pack(pop)

Expand Down

0 comments on commit ffff3d5

Please sign in to comment.