Mercurial > libavcodec.hg
changeset 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 | 12f23f37664b |
children | a5c709bba8e4 |
files | atrac3.c cook.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/atrac3.c Tue Mar 17 12:43:09 2009 +0000 +++ b/atrac3.c Tue Mar 17 20:47:31 2009 +0000 @@ -230,7 +230,7 @@ const uint32_t* buf; uint32_t* obuf = (uint32_t*) out; - off = (int)((long)inbuffer & 3); + off = (intptr_t)inbuffer & 3; buf = (const uint32_t*) (inbuffer - off); c = be2me_32((0x537F6103 >> (off*8)) | (0x537F6103 << (32-(off*8)))); bytes += 3 + off;
--- 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;