Commit 749be8c7 authored by mru's avatar mru

long is better than int for pointer differences

patch by Dieter <freebsd at sopwith solgatos com>


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4911 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 17db47d8
......@@ -46,7 +46,7 @@ void *av_malloc(unsigned int size)
{
void *ptr;
#ifdef MEMALIGN_HACK
int diff;
long diff;
#endif
/* lets disallow possible ambiguous cases */
......@@ -55,7 +55,7 @@ void *av_malloc(unsigned int size)
#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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment