(Hopefully) fix a warning on Windows.
MSVC unhelpfuly says: warning C4146: unary minus operator applied to unsigned type, result still unsigned. Change-Id: Ia1e6b9fc415908920abb1bcd98fc7f7a5670c2c7
This commit is contained in:
parent
466b9895ac
commit
8f7ecb8f0c
@ -138,7 +138,7 @@ static unsigned booth_recode_w7(unsigned in) {
|
||||
|
||||
static void copy_conditional(BN_ULONG dst[P256_LIMBS],
|
||||
const BN_ULONG src[P256_LIMBS], BN_ULONG move) {
|
||||
BN_ULONG mask1 = -move;
|
||||
BN_ULONG mask1 = ((BN_ULONG)0) - move;
|
||||
BN_ULONG mask2 = ~mask1;
|
||||
|
||||
dst[0] = (src[0] & mask1) ^ (dst[0] & mask2);
|
||||
|
Loading…
Reference in New Issue
Block a user