mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-06-16 03:34:56 +02:00
src/libsecp256k1/ecdsa.cpp: fix warning about assigning an int value to unsigned char.
This commit is contained in:
parent
62b677d0e0
commit
ee4705e858
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ int ecdsa_sign(const ec_privkey_t& key, const sha256_t* digest, ec_signature_t&
|
|||
secp256k1_ecdsa_recoverable_signature_serialize_compact(ctx, sig.data() + 1, &v, &s);
|
||||
|
||||
if (is_canonical(sig.data())) {
|
||||
sig[0] = 27 + 4 + v;
|
||||
sig[0] = (unsigned char) (27 + 4 + v);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue