aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2014-11-10 19:03:03 +0100
committerKurt Roeckx <kurt@roeckx.be>2014-11-11 15:46:28 +0100
commit67b8bcee95f225a07216700786b538bb98d63cfe (patch)
tree41af1b3de1d2ecfb7fcefd98d20fe34ff5733542 /crypto
parentf8ae603238ca4daf1ae40ac965e044e4be53102b (diff)
downloadopenssl-67b8bcee95f225a07216700786b538bb98d63cfe.zip
openssl-67b8bcee95f225a07216700786b538bb98d63cfe.tar.gz
openssl-67b8bcee95f225a07216700786b538bb98d63cfe.tar.bz2
Fix warning about negative unsigned intergers
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/constant_time_locl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/constant_time_locl.h b/crypto/constant_time_locl.h
index ccb6408..8af98c1 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)