From d94c8c69549d52f8a966c45e5a9b8250bd0880bf Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Sun, 28 Apr 2024 09:50:51 +0200 Subject: [PATCH] types: fix RE_ARG_SIZE bit fields GCC workaround for bit fields (always default otherwise). --- include/re_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/re_types.h b/include/re_types.h index 739b1dcf0..336eea919 100644 --- a/include/re_types.h +++ b/include/re_types.h @@ -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), \