comparison dsputil.c @ 9259:a031926f7d6b libavcodec

Use intptr_t when casting pointers to int.
author ramiro
date Thu, 26 Mar 2009 01:34:02 +0000
parents a49197cd37ce
children 8aa2e86549cd
comparison
equal deleted inserted replaced
9258:c55ba0e88410 9259:a031926f7d6b
4269 4269
4270 int ff_check_alignment(void){ 4270 int ff_check_alignment(void){
4271 static int did_fail=0; 4271 static int did_fail=0;
4272 DECLARE_ALIGNED_16(int, aligned); 4272 DECLARE_ALIGNED_16(int, aligned);
4273 4273
4274 if((long)&aligned & 15){ 4274 if((intptr_t)&aligned & 15){
4275 if(!did_fail){ 4275 if(!did_fail){
4276 #if HAVE_MMX || HAVE_ALTIVEC 4276 #if HAVE_MMX || HAVE_ALTIVEC
4277 av_log(NULL, AV_LOG_ERROR, 4277 av_log(NULL, AV_LOG_ERROR,
4278 "Compiler did not align stack variables. Libavcodec has been miscompiled\n" 4278 "Compiler did not align stack variables. Libavcodec has been miscompiled\n"
4279 "and may be very slow or crash. This is not a bug in libavcodec,\n" 4279 "and may be very slow or crash. This is not a bug in libavcodec,\n"