mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
Avoid void * arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23633 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5a4bfacce8
commit
22d3fd45d9
@ -42,7 +42,7 @@ typedef struct m_struct_st {
|
|||||||
* \return Pointer to the struct field.
|
* \return Pointer to the struct field.
|
||||||
*/
|
*/
|
||||||
#define M_ST_MB_P(struct_p, struct_offset) \
|
#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.
|
/// Access a struct field at a given offset.
|
||||||
/** \param member_type Type of the field.
|
/** \param member_type Type of the field.
|
||||||
|
Loading…
Reference in New Issue
Block a user