summaryrefslogtreecommitdiffhomepage
path: root/include/stc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-10-31 10:43:12 +0100
committerTyge Løvset <[email protected]>2022-10-31 10:43:12 +0100
commit7c9c39664ab563ed389e6f4f043efe3bd882bd7e (patch)
treed8a47f6dad84a21d0e96b3dc87f56fee06cda005 /include/stc
parentb648d1bb80958fffed9ad27ee06b2d662d2d67bd (diff)
downloadSTC-modified-7c9c39664ab563ed389e6f4f043efe3bd882bd7e.tar.gz
STC-modified-7c9c39664ab563ed389e6f4f043efe3bd882bd7e.zip
Minor adjustment.
Diffstat (limited to 'include/stc')
-rw-r--r--include/stc/ccommon.h2
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))