changeset 9259:a031926f7d6b libavcodec

Use intptr_t when casting pointers to int.
author ramiro
date Thu, 26 Mar 2009 01:34:02 +0000
parents c55ba0e88410
children 762d7bc58fb6
files dsputil.c h263.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dsputil.c	Wed Mar 25 19:00:15 2009 +0000
+++ b/dsputil.c	Thu Mar 26 01:34:02 2009 +0000
@@ -4271,7 +4271,7 @@
     static int did_fail=0;
     DECLARE_ALIGNED_16(int, aligned);
 
-    if((long)&aligned & 15){
+    if((intptr_t)&aligned & 15){
         if(!did_fail){
 #if HAVE_MMX || HAVE_ALTIVEC
             av_log(NULL, AV_LOG_ERROR,
--- a/h263.c	Wed Mar 25 19:00:15 2009 +0000
+++ b/h263.c	Thu Mar 26 01:34:02 2009 +0000
@@ -3056,7 +3056,7 @@
     uint8_t *start= pbBufPtr(&s->pb);
     uint8_t *end= s->pb.buf_end;
     int size= end - start;
-    int pb_size = (((long)start + size/3)&(~3)) - (long)start;
+    int pb_size = (((intptr_t)start + size/3)&(~3)) - (intptr_t)start;
     int tex_size= (size - 2*pb_size)&(~3);
 
     set_put_bits_buffer_size(&s->pb, pb_size);