We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33a52bb commit 31e939fCopy full SHA for 31e939f
deps/micro-ecc/uECC.c
@@ -307,7 +307,7 @@ uECC_VLI_API cmpresult_t uECC_vli_cmp(const uECC_word_t *left,
307
uECC_word_t tmp[uECC_MAX_WORDS];
308
uECC_word_t neg = !!uECC_vli_sub(tmp, left, right, num_words);
309
uECC_word_t equal = uECC_vli_isZero(tmp, num_words);
310
- return (cmpresult_t)(!equal - 2 * neg);
+ return (!equal - 2 * neg);
311
}
312
313
/* Computes vli = vli >> 1. */
@@ -957,7 +957,7 @@ uECC_VLI_API void uECC_vli_nativeToBytes(uint8_t *bytes,
957
wordcount_t i;
958
for (i = 0; i < num_bytes; ++i) {
959
unsigned b = num_bytes - 1 - i;
960
- bytes[i] = (uint8_t)(native[b / uECC_WORD_SIZE] >> (8 * (b % uECC_WORD_SIZE)));
+ bytes[i] = native[b / uECC_WORD_SIZE] >> (8 * (b % uECC_WORD_SIZE));
961
962
963
0 commit comments