Skip to content

Commit

Permalink
types: fix RE_ARG_SIZE bit fields
Browse files Browse the repository at this point in the history
GCC workaround for bit fields (always default otherwise).
  • Loading branch information
sreimers committed Apr 28, 2024
1 parent 2b3bbaf commit d94c8c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/re_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ typedef int re_sock_t;
#define HAVE_RE_ARG 1

#define RE_ARG_SIZE(type) \
_Generic((type), \
_Generic((0)?(type):(type), \
bool: sizeof(int), \
char: sizeof(int), \
unsigned char: sizeof(unsigned int), \
Expand Down

0 comments on commit d94c8c6

Please sign in to comment.