]> granicus.if.org Git - libx264/commitdiff
fix "incompatible types in initialization" compilation issues with GCC 4.3 (which...
authorGuillaume Poirier <gpoirier@mplayerhq.hu>
Tue, 21 Apr 2009 21:18:44 +0000 (21:18 +0000)
committerGuillaume Poirier <gpoirier@mplayerhq.hu>
Tue, 21 Apr 2009 21:18:44 +0000 (21:18 +0000)
common/ppc/pixel.c

index 2f7082a9ccffe533c975e11c2e9e87973ec29de8..360e71d853c816db31058bbf77faf8131b50b09a 100644 (file)
@@ -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 )