Mercurial > mplayer.hg
changeset 23613:990bafe740df
Avoid void * arithmetic
author | reimar |
---|---|
date | Sun, 24 Jun 2007 10:26:01 +0000 |
parents | 10a64a994a16 |
children | bab9e6c606cc |
files | m_struct.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/m_struct.h Sun Jun 24 10:24:11 2007 +0000 +++ b/m_struct.h Sun Jun 24 10:26:01 2007 +0000 @@ -42,7 +42,7 @@ * \return Pointer to the struct field. */ #define M_ST_MB_P(struct_p, struct_offset) \ - ((void*) (struct_p) + (unsigned long) (struct_offset)) + ((void *)((char *)(struct_p) + (unsigned long)(struct_offset))) /// Access a struct field at a given offset. /** \param member_type Type of the field.