diff options
| author | Aetias <aetias@outlook.com> | 2025-03-09 09:53:46 +0100 |
|---|---|---|
| committer | Aetias <aetias@outlook.com> | 2025-03-09 09:53:46 +0100 |
| commit | 5523f03c9992fb9bc610cbf071d8a8114b9eaed2 (patch) | |
| tree | b516253179d61a4f425db2be240598c0862546f4 /libs | |
| parent | 45300533d5f28ff296d2af6afb6d2a0f6831bda1 (diff) | |
Parentheses around offsetof
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/c/include/stddef.h | 2 |
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 |
