diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2014-11-10 19:03:03 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2014-11-11 15:48:34 +0100 |
commit | b726b8a60cf8ffa4ab44c01c0a7eced1f17f32dd (patch) | |
tree | d24bc78414724dbd12df778048a590eb32a90502 /crypto | |
parent | e298409c34ac7a91376b7cc7c8fb62853d1442a5 (diff) | |
download | openssl-new-b726b8a60cf8ffa4ab44c01c0a7eced1f17f32dd.tar.gz |
Fix warning about negative unsigned intergers
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/constant_time_locl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/constant_time_locl.h b/crypto/constant_time_locl.h index ccb64082fd..8af98c1683 100644 --- a/crypto/constant_time_locl.h +++ b/crypto/constant_time_locl.h @@ -129,7 +129,7 @@ static inline int constant_time_select_int(unsigned int mask, int a, int b); static inline unsigned int constant_time_msb(unsigned int a) { - return -(a >> (sizeof(unsigned int) * 8 - 1)); + return 0-(a >> (sizeof(a) * 8 - 1)); } static inline unsigned int constant_time_lt(unsigned int a, unsigned int b) |