aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/ppc/swscale_altivec_template.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-05-26 18:57:26 +0200
committerRonald S. Bultje <rsbultje@gmail.com>2011-05-28 10:03:37 -0400
commitb8e893399ff8755721dc117695ec5ff183c1e07b (patch)
tree9fb1961a9d5ae9f2d1c4e00fd170d2f56d97e477 /libswscale/ppc/swscale_altivec_template.c
parent7d8c17b5f62bc14d5f7c7c792630b23240b47eec (diff)
downloadffmpeg-b8e893399ff8755721dc117695ec5ff183c1e07b.tar.gz
sws: replace all long with int.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libswscale/ppc/swscale_altivec_template.c')
-rw-r--r--libswscale/ppc/swscale_altivec_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/ppc/swscale_altivec_template.c b/libswscale/ppc/swscale_altivec_template.c
index eee7bdd0a5..21e3b4eafb 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 long)dest % 16) {
+ if ((unsigned int)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 long)dest + i) % 16) ; i++) {
+ (((unsigned int)dest + i) % 16) ; i++) {
int t = val[i] >> 19;
dest[i] = (t < 0) ? 0 : ((t > 255) ? 255 : t);
}