changeset 28972:74f99934fb48

Remove useless casting in asm "m" operand. Patch by Matthieu Castet, castet D matthieu A free D fr
author cehoyos
date Thu, 19 Mar 2009 23:29:19 +0000
parents b8e356a9dbb1
children 9ae8c54007f5
files libswscale/swscale_template.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale_template.c	Thu Mar 19 21:52:44 2009 +0000
+++ b/libswscale/swscale_template.c	Thu Mar 19 23:29:19 2009 +0000
@@ -2613,9 +2613,9 @@
 /* GCC 3.3 makes MPlayer crash on IA-32 machines when using "g" operand here,
    which is needed to support GCC 4.0. */
 #if ARCH_X86_64 && ((__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
-            :: "m" (src1), "m" (dst), "g" ((x86_reg)dstWidth), "m" (xInc_shr16), "m" (xInc_mask),
+            :: "m" (src1), "m" (dst), "g" (dstWidth), "m" (xInc_shr16), "m" (xInc_mask),
 #else
-            :: "m" (src1), "m" (dst), "m" ((long)dstWidth), "m" (xInc_shr16), "m" (xInc_mask),
+            :: "m" (src1), "m" (dst), "m" (dstWidth), "m" (xInc_shr16), "m" (xInc_mask),
 #endif
             "r" (src2)
             : "%"REG_a, "%"REG_d, "%ecx", "%"REG_D, "%esi"