mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 11:05:47 +01:00
Make VS compiler happy
It doesn't seem to like using unary - to unsigned values.
This commit is contained in:
parent
231bf52691
commit
83d7881cec
@ -1172,7 +1172,7 @@ int uECC_valid_point(const uECC_word_t *point)
|
|||||||
uECC_word_t tmp1[NUM_ECC_WORDS];
|
uECC_word_t tmp1[NUM_ECC_WORDS];
|
||||||
uECC_word_t tmp2[NUM_ECC_WORDS];
|
uECC_word_t tmp2[NUM_ECC_WORDS];
|
||||||
wordcount_t num_words = 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. */
|
/* The point at infinity is invalid. */
|
||||||
if (EccPoint_isZero(point)) {
|
if (EccPoint_isZero(point)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user