From f3178afe88b19ebd6dbce6fe9ed2a23f68bc4f1e Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Sun, 28 Apr 2024 10:25:47 +0200 Subject: [PATCH] types: fix RE_ARG_SIZE bit fields (#1110) 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), \