From: eck Date: Tue, 30 Oct 1990 09:53:48 +0000 (+0000) Subject: removed a cast from offsetof() X-Git-Tag: release-5-5~1460 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=9df58e86ec197f607c718650f151f355635aadf7;p=ack.git removed a cast from offsetof() --- diff --git a/lang/cem/libcc.ansi/headers/stddef.h b/lang/cem/libcc.ansi/headers/stddef.h index aa60ff63d..31643ff70 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 */