]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - common.h
Remove redundant ampersand breaking ContainerOf and List_For_Each_Entry. Make all...
[xonotic/darkplaces.git] / common.h
index 4f5e88b36f5d0583ad5bbfdd975d06fa2446e180..5338d514ef60bc7ab5116d70b27dc592e223d15b 100644 (file)
--- a/common.h
+++ b/common.h
@@ -42,7 +42,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 //============================================================================
 
-#define ContainerOf(ptr, type, member) ((type *)((char *)&(ptr) - offsetof(type, member)))
+#define ContainerOf(ptr, type, member) ((type *)((char *)(ptr) - offsetof(type, member)))
 
 typedef struct sizebuf_s
 {