From 1f19101f8aeaac73bbf3645ec5aec84ebb0f990c Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 14 Aug 2019 23:04:39 -0400 Subject: [PATCH] fixed container_of macro --- inc/stdc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/stdc.h b/inc/stdc.h index bc94b0b..de96c2b 100644 --- a/inc/stdc.h +++ b/inc/stdc.h @@ -175,7 +175,7 @@ static inline char* _getopt_(int* p_argc, char*** p_argv) { #ifndef container_of #define container_of(obj, type, member) \ - (type*)((uintptr_t)obj - offsetof(type, member)) + ((type*)((uintptr_t)obj - offsetof(type, member))) #endif #define concat(a,b) \ -- 2.51.0