From: Andy Polyakov Date: Mon, 2 Aug 2010 21:51:07 +0000 (+0000) Subject: rc5_locl.h: make inline assembler clang-friendly. X-Git-Tag: OpenSSL-fips-2_0-rc1~1011 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dbe3611bbd9564d5f1a22e0f82429bdab2b30553;p=oweals%2Fopenssl.git rc5_locl.h: make inline assembler clang-friendly. --- 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; \ })