diff --git a/common.h b/common.h index 9d73bc548..b38f830d1 100644 --- a/common.h +++ b/common.h @@ -38,7 +38,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. //============================================================================ -#define ContainerOf(ptr, type, member) (type *)((void *)&(ptr) - offsetof(type, member)) +#define ContainerOf(ptr, type, member) ((type *)((void *)&(ptr) - offsetof(type, member))) typedef struct sizebuf_s {