summaryrefslogtreecommitdiffstats
path: root/m_struct.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-24 10:26:01 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-24 10:26:01 +0000
commit22d3fd45d97ed2830bb59fa64e656090935ef044 (patch)
tree8c8a2904e6f74919f87990ffba922bd019c6ba5c /m_struct.h
parent5a4bfacce806028609aeb997c813ad81f069cf6a (diff)
downloadmpv-22d3fd45d97ed2830bb59fa64e656090935ef044.tar.bz2
mpv-22d3fd45d97ed2830bb59fa64e656090935ef044.tar.xz
Avoid void * arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23633 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'm_struct.h')
-rw-r--r--m_struct.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/m_struct.h b/m_struct.h
index f56670ff49..99a7dc3768 100644
--- a/m_struct.h
+++ b/m_struct.h
@@ -42,7 +42,7 @@ typedef struct m_struct_st {
* \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.