Resolve comparison warnings

This commit is contained in:
Joost Rijneveld 2017-10-19 16:50:24 +02:00
parent f3bad4a272
commit 2a89ca2874
No known key found for this signature in database
GPG Key ID: A4FE39CF49CBC553
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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++) {