Fix compiler error with MSVC with new implementation of offsetof

This commit is contained in:
Patrick Pelissier committed 2021-01-10 18:01:19 +01:00
1 parent df97ea848c
commit c9ed4ba820
1 file changed
+1 -1
+1 -1
View File
@@ -2040,7 +2040,7 @@ M_PARSE_DEFAULT_TYPE_DEF(m_core_parse_ldouble, long double, strtold, )
((type *)(void*)( (char *)M_ASSIGN_CAST(field_type*, (ptr)) - offsetof(type, field) ))
#define M_CTYPE_FROM_FIELD(type, ptr, field_type, field) \
((type const *)(const void*)( (const char *)M_ASSIGN_CAST(field_type const *, (ptr)) - offsetof(type const, field) ))
((type const *)(const void*)( (const char *)M_ASSIGN_CAST(field_type const *, (ptr)) - offsetof(type, field) ))
/* Use to generate a dummy alignment field for cache alignment within a structure