]> granicus.if.org Git - libx264/commitdiff
fix compilation with GCC-4.3+
authorGuillaume Poirier <gpoirier@mplayerhq.hu>
Fri, 5 Dec 2008 21:26:55 +0000 (22:26 +0100)
committerGuillaume Poirier <gpoirier@mplayerhq.hu>
Fri, 5 Dec 2008 21:28:23 +0000 (22:28 +0100)
common/ppc/ppccommon.h

index 78eb9063cb1714dc80d7fd8c5b535e8105234c45..b9b718d3a7632aa185f4b4472f019d008aafdac5 100644 (file)
@@ -251,7 +251,7 @@ typedef union {
  * and i2
  **********************************************************************/
 #define VEC_DIFF_HL(p1,i1,p2,i2,dh,dl)       \
-    pix1v = vec_ld(0, p1);                   \
+    pix1v = (vec_s16_t)vec_ld(0, p1);        \
     temp0v = vec_u8_to_s16_h( pix1v );       \
     temp1v = vec_u8_to_s16_l( pix1v );       \
     VEC_LOAD( p2, pix2v, 16, vec_s16_t, p2); \