summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorAetias <aetias@outlook.com>2025-03-09 09:53:46 +0100
committerAetias <aetias@outlook.com>2025-03-09 09:53:46 +0100
commit5523f03c9992fb9bc610cbf071d8a8114b9eaed2 (patch)
treeb516253179d61a4f425db2be240598c0862546f4 /libs
parent45300533d5f28ff296d2af6afb6d2a0f6831bda1 (diff)
Parentheses around offsetof
Diffstat (limited to 'libs')
-rw-r--r--libs/c/include/stddef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/c/include/stddef.h b/libs/c/include/stddef.h
index b0c76af3..4858fe46 100644
--- a/libs/c/include/stddef.h
+++ b/libs/c/include/stddef.h
@@ -5,6 +5,6 @@
typedef unsigned int size_t;
-#define offsetof(type, member) (size_t) &((type *) NULL)->member
+#define offsetof(type, member) ((size_t) &((type *) NULL)->member)
#endif