shithub: libvpx

Download patch

ref: a43bdcd7b021d7aa091a516ac313930b3d28fe6e
parent: e34e5419f833ccfea8b2d83eeb457d2a556377b3
parent: bf8c6207786bc64716186cb2ca8955344dde6307
author: Johann <johannkoenig@google.com>
date: Tue Jun 11 04:18:46 EDT 2013

Merge "halloc: Cast the offsetof macro to ptrdiff_t before negating"

--- a/nestegg/halloc/src/macros.h
+++ b/nestegg/halloc/src/macros.h
@@ -20,7 +20,7 @@
 /*
  	restore pointer to the structure by a pointer to its field
  */
-#define structof(p,t,f) ((t*)(- offsetof(t,f) + (char*)(p)))
+#define structof(p,t,f) ((t*)(- (ptrdiff_t) offsetof(t,f) + (char*)(p)))
 
 /*
  *	redefine for the target compiler
--