Fix FIELDOFFSET for OSX.

This commit is contained in:
LuisAntonRebollo 2015-01-31 20:48:28 +01:00
parent 6d1ef41c69
commit 5d49771136

View file

@ -571,7 +571,7 @@ namespace _Private {
///
#define FIELD_AS( type, fieldName, exportName, numElements, doc ) \
{ #exportName, doc, numElements, TYPE( *( ( type* ) &( ( ThisType* ) 16 )->fieldName ) ), FIELDOFFSET( fieldName ) }, // Artificial offset to avoid compiler warnings.
{ #exportName, doc, numElements, TYPE( *( ( type* ) &( ( ThisType* ) 16 )->fieldName ) ), (U32)FIELDOFFSET( fieldName ) }, // Artificial offset to avoid compiler warnings.
///
#define FIELDOFFSET( fieldName ) \