Skip to content

Commit 31e939f

Browse files
committed
temporary revert local changes
1 parent 33a52bb commit 31e939f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/micro-ecc/uECC.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ uECC_VLI_API cmpresult_t uECC_vli_cmp(const uECC_word_t *left,
307307
uECC_word_t tmp[uECC_MAX_WORDS];
308308
uECC_word_t neg = !!uECC_vli_sub(tmp, left, right, num_words);
309309
uECC_word_t equal = uECC_vli_isZero(tmp, num_words);
310-
return (cmpresult_t)(!equal - 2 * neg);
310+
return (!equal - 2 * neg);
311311
}
312312

313313
/* Computes vli = vli >> 1. */
@@ -957,7 +957,7 @@ uECC_VLI_API void uECC_vli_nativeToBytes(uint8_t *bytes,
957957
wordcount_t i;
958958
for (i = 0; i < num_bytes; ++i) {
959959
unsigned b = num_bytes - 1 - i;
960-
bytes[i] = (uint8_t)(native[b / uECC_WORD_SIZE] >> (8 * (b % uECC_WORD_SIZE)));
960+
bytes[i] = native[b / uECC_WORD_SIZE] >> (8 * (b % uECC_WORD_SIZE));
961961
}
962962
}
963963

0 commit comments

Comments
 (0)