changeset 11702:21fd8b4dfab9 libavcodec

Adding missing () to mathops.h.
author michael
date Tue, 11 May 2010 00:22:50 +0000
parents 953d0c2d2c0a
children c2461b6b94c9
files x86/mathops.h
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/x86/mathops.h	Mon May 10 21:16:08 2010 +0000
+++ b/x86/mathops.h	Tue May 11 00:22:50 2010 +0000
@@ -31,17 +31,17 @@
             "imull %3               \n\t"\
             "shrdl %4, %%edx, %%eax \n\t"\
             : "=a"(rt), "=d"(dummy)\
-            : "a" ((int)ra), "rm" ((int)rb), "i"(shift));\
+            : "a" ((int)(ra)), "rm" ((int)(rb)), "i"(shift));\
          rt; })
 
 #define MULH(ra, rb) \
     ({ int rt, dummy;\
-     __asm__ ("imull %3\n\t" : "=d"(rt), "=a"(dummy): "a" ((int)ra), "rm" ((int)rb));\
+     __asm__ ("imull %3\n\t" : "=d"(rt), "=a"(dummy): "a" ((int)(ra)), "rm" ((int)(rb)));\
      rt; })
 
 #define MUL64(ra, rb) \
     ({ int64_t rt;\
-     __asm__ ("imull %2\n\t" : "=A"(rt) : "a" ((int)ra), "g" ((int)rb));\
+     __asm__ ("imull %2\n\t" : "=A"(rt) : "a" ((int)(ra)), "g" ((int)(rb)));\
      rt; })
 #endif