We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd8a9e2 commit 710590eCopy full SHA for 710590e
libunwind/src/UnwindCursor.hpp
@@ -230,8 +230,8 @@ void DwarfFDECache<A>::iterateCacheEntries(void (*func)(
230
}
231
#endif // defined(_LIBUNWIND_SUPPORT_DWARF_UNWIND)
232
233
-
234
-#define arrayoffsetof(type, index, field) ((size_t)(&((type *)0)[index].field))
+#define arrayoffsetof(type, index, field) \
+ (sizeof(type) * (index) + offsetof(type, field))
235
236
#if defined(_LIBUNWIND_SUPPORT_COMPACT_UNWIND)
237
template <typename A> class UnwindSectionHeader {
0 commit comments