summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--klibc/klibc/include/stddef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/klibc/klibc/include/stddef.h b/klibc/klibc/include/stddef.h
index 900c147cd8..125d2352ec 100644
--- a/klibc/klibc/include/stddef.h
+++ b/klibc/klibc/include/stddef.h
@@ -19,6 +19,6 @@
#endif
#undef offsetof
-#define offsetof(t,m) ((size_t)&((t *)0->m))
+#define offsetof(t,m) ((size_t)&((t *)0)->m)
#endif /* _STDDEF_H */