projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8ae603
)
Fix warning about negative unsigned intergers
author
Kurt Roeckx
<kurt@roeckx.be>
Mon, 10 Nov 2014 18:03:03 +0000
(19:03 +0100)
committer
Kurt Roeckx
<kurt@roeckx.be>
Tue, 11 Nov 2014 14:46:28 +0000
(15:46 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/constant_time_locl.h
patch
|
blob
|
history
diff --git
a/crypto/constant_time_locl.h
b/crypto/constant_time_locl.h
index ccb64082fde0ffcb68577912eec5e0619f5ee364..8af98c168329e97ce12d71b826fa08906f62a05a 100644
(file)
--- 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)