Skip to content

Commit

Permalink
len is of type size_t (per bitcoin-core/secp256k1@788038d)
Browse files Browse the repository at this point in the history
  • Loading branch information
thedoctor committed Oct 21, 2015
1 parent 31a9527 commit b3e2a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracthashtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ int main(int argc, char* argv[]) {
ERROREXIT("YOU BROKE SHA256, PLEASE SEND THE EXACT DATA USED IN A BUG REPORT\n");
break; // if tweak > order
}
int len = 33;
size_t len = 33;
secp256k1_ec_pubkey_serialize(secp256k1_ctx, keys_work[i], &len, &pubkey, 1);
assert(len == 33);
}
Expand Down Expand Up @@ -292,7 +292,7 @@ int main(int argc, char* argv[]) {
else
memcpy(data + 4 + sizeof(nonce), p2sh_bytes, sizeof(p2sh_bytes));

int len = 0;
size_t len = 0;
if (secp256k1_ec_pubkey_create(secp256k1_ctx, &pubkey, priv) != 1)
ERROREXIT("Private key was invalid\n");
secp256k1_ec_pubkey_serialize(secp256k1_ctx, pub, &len, &pubkey, 1);
Expand Down

0 comments on commit b3e2a78

Please sign in to comment.