Mercurial > libavcodec.hg
diff cook.c @ 9183:7b62479a31ec libavcodec
use intptr_t to cast pointers to int in codecs maintained by benjamin larsson
author | ramiro |
---|---|
date | Tue, 17 Mar 2009 20:47:31 +0000 |
parents | e353d3a41e0b |
children | bb35ea566fe5 |
line wrap: on
line diff
--- a/cook.c Tue Mar 17 12:43:09 2009 +0000 +++ b/cook.c Tue Mar 17 20:47:31 2009 +0000 @@ -302,7 +302,7 @@ * (int64_t)out[i] = 0x37c511f237c511f2^be2me_64(int64_t)in[i]); * Buffer alignment needs to be checked. */ - off = (int)((long)inbuffer & 3); + off = (intptr_t)inbuffer & 3; buf = (const uint32_t*) (inbuffer - off); c = be2me_32((0x37c511f2 >> (off*8)) | (0x37c511f2 << (32-(off*8)))); bytes += 3 + off;