Fix typo in macro.
I copied this macro directly from Bruce's email, as I assumed it was awesome already. Reported by: tijl@
This commit is contained in:
parent
65e4e49949
commit
c52a37bafb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228564
@ -361,7 +361,7 @@
|
||||
#else
|
||||
#ifndef __cplusplus
|
||||
#define __offsetof(type, field) \
|
||||
((__size_t)(__uintptr_t)((const volatile void *)&((type *)0)->member))
|
||||
((__size_t)(__uintptr_t)((const volatile void *)&((type *)0)->field))
|
||||
#else
|
||||
#define __offsetof(type, field) \
|
||||
(__offsetof__ (reinterpret_cast <__size_t> \
|
||||
|
Loading…
Reference in New Issue
Block a user