commit | 83d7881cec8e8d7a238a1dd9c58463b3218f1c79 | [log] [tgz] |
---|---|---|
author | Jarno Lamsa <jarno.lamsa@arm.com> | Wed Dec 04 14:40:57 2019 +0200 |
committer | Jarno Lamsa <jarno.lamsa@arm.com> | Wed Dec 04 14:40:57 2019 +0200 |
tree | b7e8e56b740e5c76ea75f6818be91843f7f77d60 | |
parent | 231bf5269108850224ba70419db0ec642a6a97ed [diff] |
Make VS compiler happy It doesn't seem to like using unary - to unsigned values.
diff --git a/tinycrypt/ecc.c b/tinycrypt/ecc.c index df7a692..d54019f 100644 --- a/tinycrypt/ecc.c +++ b/tinycrypt/ecc.c
@@ -1172,7 +1172,7 @@ uECC_word_t tmp1[NUM_ECC_WORDS]; uECC_word_t tmp2[NUM_ECC_WORDS]; wordcount_t num_words = NUM_ECC_WORDS; - volatile uECC_word_t diff = -1u; + volatile uECC_word_t diff = 0xffffffff; /* The point at infinity is invalid. */ if (EccPoint_isZero(point)) {