Mercurial > mplayer.hg
changeset 37183:eaa58d991a06
Use intptr_t to cast a pointer.
Avoids warnings especially when compiling for 64-bit Windows.
Patch by Stephen Sheldon [sfsheldo gmail].
author | reimar |
---|---|
date | Wed, 17 Sep 2014 16:55:09 +0000 |
parents | 1c64016edce3 |
children | 36d586f37e26 |
files | m_struct.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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.