summaryrefslogtreecommitdiffstats
path: root/crypto/rc5
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2010-08-02 21:51:07 +0000
committerAndy Polyakov <appro@openssl.org>2010-08-02 21:51:07 +0000
commitdbe3611bbd9564d5f1a22e0f82429bdab2b30553 (patch)
tree1687a8f1dd6d2f2d6f20bdb48873d10c07035e49 /crypto/rc5
parentf71c6aceebcc0b4eda7b88d3a8911860036d937c (diff)
rc5_locl.h: make inline assembler clang-friendly.
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; \
})