From: Guillaume Poirier Date: Tue, 21 Apr 2009 21:18:44 +0000 (+0000) Subject: fix "incompatible types in initialization" compilation issues with GCC 4.3 (which... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57505e301e81ea6fbeaa1a5503f05250335ab1d1;p=libx264 fix "incompatible types in initialization" compilation issues with GCC 4.3 (which is stricter than previous compiler version) --- diff --git a/common/ppc/pixel.c b/common/ppc/pixel.c index 2f7082a9..360e71d8 100644 --- a/common/ppc/pixel.c +++ b/common/ppc/pixel.c @@ -1865,7 +1865,7 @@ static int pixel_sa8d_16x16_altivec( uint8_t *pix1, int i_pix1, #define VEC_LOAD_HIGH( p, num ) \ vec_u8_t pix8_##num = vec_ld( stride*num, p ); \ - vec_s16_t pix16_s##num = vec_perm(pix8_##num, zero_u8v, perm); \ + vec_s16_t pix16_s##num = (vec_s16_t)vec_perm(pix8_##num, zero_u8v, perm); \ vec_s16_t pix16_d##num; static uint64_t pixel_hadamard_ac_altivec( uint8_t *pix, int stride, const vec_u8_t perm )