diff options
| author | Tyge Løvset <[email protected]> | 2022-10-31 10:43:12 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-10-31 10:43:12 +0100 |
| commit | 7c9c39664ab563ed389e6f4f043efe3bd882bd7e (patch) | |
| tree | d8a47f6dad84a21d0e96b3dc87f56fee06cda005 | |
| parent | b648d1bb80958fffed9ad27ee06b2d662d2d67bd (diff) | |
| download | STC-modified-7c9c39664ab563ed389e6f4f043efe3bd882bd7e.tar.gz STC-modified-7c9c39664ab563ed389e6f4f043efe3bd882bd7e.zip | |
Minor adjustment.
| -rw-r--r-- | include/stc/ccommon.h | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |
