From 83d7881cec8e8d7a238a1dd9c58463b3218f1c79 Mon Sep 17 00:00:00 2001 From: Jarno Lamsa Date: Wed, 4 Dec 2019 14:40:57 +0200 Subject: [PATCH] Make VS compiler happy It doesn't seem to like using unary - to unsigned values. --- tinycrypt/ecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinycrypt/ecc.c b/tinycrypt/ecc.c index df7a6928c..d54019f54 100644 --- a/tinycrypt/ecc.c +++ b/tinycrypt/ecc.c @@ -1172,7 +1172,7 @@ int uECC_valid_point(const uECC_word_t *point) 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)) {