[Ffmpeg-devel] [PATCH] part 9 - portability fixes (ILP32 vs LP64)
Dieter
freebsd
Sun Jan 29 21:14:50 CET 2006
Diffs for file: libavcodec/mem.c
===================================================================
RCS file: RCS/mem.c,v
retrieving revision 1.1
diff -u -r1.1 mem.c
--- mem.c 2006/01/26 20:57:04 1.1
+++ mem.c 2006/01/26 20:57:57
@@ -46,7 +46,7 @@
{
void *ptr;
#ifdef MEMALIGN_HACK
- int diff;
+ long diff;
#endif
/* lets disallow possible ambiguous cases */
@@ -55,7 +55,7 @@
#ifdef MEMALIGN_HACK
ptr = malloc(size+16+1);
- diff= ((-(int)ptr - 1)&15) + 1;
+ diff= ((-(long)ptr - 1)&15) + 1;
ptr += diff;
((char*)ptr)[-1]= diff;
#elif defined (HAVE_MEMALIGN)
More information about the ffmpeg-devel
mailing list