]> granicus.if.org Git - libx264/commitdiff
shut up gcc warning in offsetof
authorLoren Merritt <pengvado@akuvian.org>
Mon, 17 Mar 2008 07:23:35 +0000 (01:23 -0600)
committerLoren Merritt <pengvado@akuvian.org>
Mon, 17 Mar 2008 07:23:35 +0000 (01:23 -0600)
common/common.h

index c4925f2149039c0c199cb897f62b62698eab1c6c..2c905b53f7b57498cd1d8d7598f4864893a85908 100644 (file)
@@ -37,7 +37,7 @@
 #define FIX8(f) ((int)(f*(1<<8)+.5))
 
 #ifndef offsetof
-#define offsetof(T,F) ((unsigned int)((char *)&((T *)0)->F))
+#define offsetof(T,F) ((unsigned long)((char *)&((T *)0)->F))
 #endif
 
 #define CHECKED_MALLOC( var, size )\