[MPlayer-cvslog] r23633 - trunk/m_struct.h

reimar subversion at mplayerhq.hu
Sun Jun 24 12:26:01 CEST 2007


Author: reimar
Date: Sun Jun 24 12:26:01 2007
New Revision: 23633

Log:
Avoid void * arithmetic


Modified:
   trunk/m_struct.h

Modified: trunk/m_struct.h
==============================================================================
--- trunk/m_struct.h	(original)
+++ trunk/m_struct.h	Sun Jun 24 12:26:01 2007
@@ -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.



More information about the MPlayer-cvslog mailing list