From 8e09fcaa7d6de7c3eb7ab065ad2019ae6dec23b6 Mon Sep 17 00:00:00 2001 From: eck Date: Tue, 30 Oct 1990 09:53:48 +0000 Subject: [PATCH] removed a cast from offsetof() --- lang/cem/libcc.ansi/headers/stddef.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lang/cem/libcc.ansi/headers/stddef.h b/lang/cem/libcc.ansi/headers/stddef.h index aa60ff63..31643ff7 100644 --- a/lang/cem/libcc.ansi/headers/stddef.h +++ b/lang/cem/libcc.ansi/headers/stddef.h @@ -11,8 +11,7 @@ #define NULL ((void *)0) -#define offsetof(type, ident) ((size_t) (unsigned long) (char *)(&((type *)0)->ident)) - +#define offsetof(type, ident) ((size_t) (unsigned long) &((type *)0)->ident) #if _EM_PSIZE == _EM_WSIZE typedef int ptrdiff_t; /* result of substracting two pointers */