mirror of
https://github.com/status-im/secp256k1.git
synced 2025-02-23 11:18:15 +00:00
Remove a VERIFY_CHECK for >=0ness on an unsigned type.
This commit is contained in:
parent
2cad067a36
commit
e28a8b86c7
@ -315,7 +315,6 @@ static void secp256k1_num_get_hex(char *r, int rlen, const secp256k1_num_t *a) {
|
|||||||
for (int i=0; i<len; i++) {
|
for (int i=0; i<len; i++) {
|
||||||
VERIFY_CHECK(rlen-len+i >= 0);
|
VERIFY_CHECK(rlen-len+i >= 0);
|
||||||
VERIFY_CHECK(rlen-len+i < rlen);
|
VERIFY_CHECK(rlen-len+i < rlen);
|
||||||
VERIFY_CHECK(tmp[i] >= 0);
|
|
||||||
VERIFY_CHECK(tmp[i] < 16);
|
VERIFY_CHECK(tmp[i] < 16);
|
||||||
r[rlen-len+i] = cvt[tmp[i]];
|
r[rlen-len+i] = cvt[tmp[i]];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user