Skip to content

Commit

Permalink
types: use sizeof int as default RE_ARG_SIZE
Browse files Browse the repository at this point in the history
The default type promotion for smaller types is int
  • Loading branch information
sreimers committed Apr 27, 2024
1 parent e8822ac commit 3e96945
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 @@ -322,7 +322,7 @@ typedef int re_sock_t;
void const*: sizeof(void const *), \
void*: sizeof(void *), \
struct pl: sizeof(struct pl), \
default: sizeof(void*) \
default: sizeof(int) \
)

#define RE_ARG_0() 0
Expand Down

0 comments on commit 3e96945

Please sign in to comment.