Resolve comparison warnings
This commit is contained in:
parent
f3bad4a272
commit
2a89ca2874
2
Makefile
2
Makefile
@ -1,5 +1,5 @@
|
|||||||
CC = /usr/bin/gcc
|
CC = /usr/bin/gcc
|
||||||
CFLAGS = -Wall -g -O3 -Wextra
|
CFLAGS = -Wall -g -O3 -Wextra -Wpedantic
|
||||||
LDLIBS = -lcrypto -lm
|
LDLIBS = -lcrypto -lm
|
||||||
|
|
||||||
SOURCES = params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss.c xmss_core.c xmss_commons.c
|
SOURCES = params.c hash.c fips202.c hash_address.c randombytes.c wots.c xmss.c xmss_core.c xmss_commons.c
|
||||||
|
@ -220,7 +220,7 @@ static char bds_state_update(const xmss_params *params,
|
|||||||
uint32_t node_addr[8];
|
uint32_t node_addr[8];
|
||||||
uint32_t ots_addr[8];
|
uint32_t ots_addr[8];
|
||||||
|
|
||||||
int nodeh;
|
unsigned int nodeh;
|
||||||
int idx = state->next_leaf;
|
int idx = state->next_leaf;
|
||||||
if (idx == 1 << params->tree_height) {
|
if (idx == 1 << params->tree_height) {
|
||||||
return 1;
|
return 1;
|
||||||
@ -493,7 +493,7 @@ int xmssmt_core_keypair(const xmss_params *params,
|
|||||||
{
|
{
|
||||||
unsigned char ots_seed[params->n];
|
unsigned char ots_seed[params->n];
|
||||||
uint32_t addr[8] = {0, 0, 0, 0, 0, 0, 0, 0};
|
uint32_t addr[8] = {0, 0, 0, 0, 0, 0, 0, 0};
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
// Set idx = 0
|
// Set idx = 0
|
||||||
for (i = 0; i < params->index_len; i++) {
|
for (i = 0; i < params->index_len; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user