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
@ -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…
x
Reference in New Issue
Block a user