# HG changeset patch # User reimar # Date 1410972909 0 # Node ID eaa58d991a069aaaf3c1e179fe0e4a3cd3787098 # Parent 1c64016edce38a49c10176808307585b85bab17b Use intptr_t to cast a pointer. Avoids warnings especially when compiling for 64-bit Windows. Patch by Stephen Sheldon [sfsheldo gmail]. diff -r 1c64016edce3 -r eaa58d991a06 m_struct.h --- a/m_struct.h Tue Sep 09 10:52:21 2014 +0000 +++ b/m_struct.h Wed Sep 17 16:55:09 2014 +0000 @@ -62,7 +62,7 @@ * \return Pointer to the struct field. */ #define M_ST_MB_P(struct_p, struct_offset) \ - ((void *)((char *)(struct_p) + (unsigned long)(struct_offset))) + ((void *)((char *)(struct_p) + (intptr_t)(struct_offset))) /// Access a struct field at a given offset. /** \param member_type Type of the field.