removed a cast from offsetof()
This commit is contained in:
parent
05ddeafbfd
commit
9df58e86ec
1 changed files with 1 additions and 2 deletions
|
@ -11,8 +11,7 @@
|
||||||
|
|
||||||
#define NULL ((void *)0)
|
#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
|
#if _EM_PSIZE == _EM_WSIZE
|
||||||
typedef int ptrdiff_t; /* result of substracting two pointers */
|
typedef int ptrdiff_t; /* result of substracting two pointers */
|
||||||
|
|
Loading…
Reference in a new issue