diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-05-29 15:22:15 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-05-29 15:22:15 +0200 |
commit | 54dc95634d1d15d5d6e3c7c361610c8eec97e75e (patch) | |
tree | c7f0365837ad6768cd8580353c9a12919ab9cab6 | |
parent | b8a43bc1b50f409414493a05f6c4b7895ca4ddf9 (diff) | |
download | ffmpeg-54dc95634d1d15d5d6e3c7c361610c8eec97e75e.tar.gz |
Cast pointers to uintptr_t rather than unsigned int.
Avoids potential warnings on PPC64 systems.
-rw-r--r-- | libswscale/ppc/swscale_altivec_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/ppc/swscale_altivec_template.c b/libswscale/ppc/swscale_altivec_template.c index 9a93252502..5d4eac5bde 100644 --- a/libswscale/ppc/swscale_altivec_template.c +++ b/libswscale/ppc/swscale_altivec_template.c @@ -29,13 +29,13 @@ altivec_packIntArrayToCharArray(int *val, uint8_t* dest, int dstW) register int i; vector unsigned int altivec_vectorShiftInt19 = vec_add(vec_splat_u32(10), vec_splat_u32(9)); - if ((unsigned int)dest % 16) { + if ((uintptr_t)dest % 16) { /* badly aligned store, we force store alignment */ /* and will handle load misalignment on val w/ vec_perm */ vector unsigned char perm1; vector signed int v1; for (i = 0 ; (i < dstW) && - (((unsigned int)dest + i) % 16) ; i++) { + (((uintptr_t)dest + i) % 16) ; i++) { int t = val[i] >> 19; dest[i] = (t < 0) ? 0 : ((t > 255) ? 255 : t); } |