summaryrefslogtreecommitdiffstats
path: root/crypto/rc5/rc5_locl.h
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2010-08-02 21:54:23 +0000
committerAndy Polyakov <appro@openssl.org>2010-08-02 21:54:23 +0000
commit031648d4ced6c6ab261cc66206156d105feb6ac0 (patch)
treeaef9283b4ee884092eb7d946cd948613b9cb9345 /crypto/rc5/rc5_locl.h
parent02bee340a22e5bc38950cd34eb3b48abca453ef3 (diff)
Make inline assembler clang-friendly [from HEAD].
Diffstat (limited to 'crypto/rc5/rc5_locl.h')
-rw-r--r--crypto/rc5/rc5_locl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rc5/rc5_locl.h b/crypto/rc5/rc5_locl.h
index 282dd38822..d337f73fad 100644
--- a/crypto/rc5/rc5_locl.h
+++ b/crypto/rc5/rc5_locl.h
@@ -154,14 +154,14 @@
# define ROTATE_l32(a,n) ({ register unsigned int ret; \
asm ("roll %%cl,%0" \
: "=r"(ret) \
- : "c"(n),"0"(a) \
+ : "c"(n),"0"((unsigned int)(a)) \
: "cc"); \
ret; \
})
# define ROTATE_r32(a,n) ({ register unsigned int ret; \
asm ("rorl %%cl,%0" \
: "=r"(ret) \
- : "c"(n),"0"(a) \
+ : "c"(n),"0"((unsigned int)(a)) \
: "cc"); \
ret; \
})