Procházet zdrojové kódy

Fix FIELDOFFSET for OSX.

LuisAntonRebollo před 10 roky
rodič
revize
5d49771136
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Engine/source/console/engineTypes.h

+ 1 - 1
Engine/source/console/engineTypes.h

@@ -571,7 +571,7 @@ namespace _Private {
 
 
 ///
 ///
 #define FIELD_AS( type, fieldName, exportName, numElements, doc ) \
 #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 ) \
 #define FIELDOFFSET( fieldName ) \