Mercurial > libavcodec.hg
comparison dsputil.c @ 5150:447fb0fdf6e1 libavcodec
kill a warning on 64-bit machines
author | mru |
---|---|
date | Sat, 16 Jun 2007 11:44:54 +0000 |
parents | 5db8d038eb1f |
children | 8c273ff9ca03 |
comparison
equal
deleted
inserted
replaced
5149:b7bae4ce8b07 | 5150:447fb0fdf6e1 |
---|---|
3819 | 3819 |
3820 int ff_check_alignment(void){ | 3820 int ff_check_alignment(void){ |
3821 static int did_fail=0; | 3821 static int did_fail=0; |
3822 DECLARE_ALIGNED_16(int, aligned); | 3822 DECLARE_ALIGNED_16(int, aligned); |
3823 | 3823 |
3824 if((int)&aligned & 15){ | 3824 if((long)&aligned & 15){ |
3825 if(!did_fail){ | 3825 if(!did_fail){ |
3826 #if defined(HAVE_MMX) || defined(HAVE_ALTIVEC) | 3826 #if defined(HAVE_MMX) || defined(HAVE_ALTIVEC) |
3827 av_log(NULL, AV_LOG_ERROR, | 3827 av_log(NULL, AV_LOG_ERROR, |
3828 "Compiler did not align stack variables. Libavcodec has been miscompiled\n" | 3828 "Compiler did not align stack variables. Libavcodec has been miscompiled\n" |
3829 "and may be very slow or crash. This is not a bug in libavcodec,\n" | 3829 "and may be very slow or crash. This is not a bug in libavcodec,\n" |