From 7c9c39664ab563ed389e6f4f043efe3bd882bd7e Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 31 Oct 2022 10:43:12 +0100 Subject: Minor adjustment. --- include/stc/ccommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h index 21a66923..7252ca50 100644 --- a/include/stc/ccommon.h +++ b/include/stc/ccommon.h @@ -64,7 +64,7 @@ #define c_unchecked_container_of(ptr, type, member) \ ((type*)((char*)(ptr) - offsetof(type, member))) #define c_container_of(p, T, m) \ - c_unchecked_container_of((p) + sizeof((p)==&((T*)0)->m) - sizeof(1==1), T, m) + c_unchecked_container_of((p) + 0*sizeof((p) == &((T*)0)->m), T, m) #ifndef __cplusplus # define c_alloc(T) c_malloc(sizeof(T)) -- cgit v1.2.3