summaryrefslogtreecommitdiffstats
path: root/crypto/rc5
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2010-08-02 21:54:48 +0000
committerAndy Polyakov <appro@openssl.org>2010-08-02 21:54:48 +0000
commit0d25aad90da7a984088338392370cc2af73e21b9 (patch)
tree53fae21e33cbb57fef511b6affc0ad221b28168d /crypto/rc5
parentb8c1cb1c2cce7468e3981019612cd27cf68d6cea (diff)
Make inline assembler clang-friendly [from HEAD].
Diffstat (limited to 'crypto/rc5')
-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; \
})