1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-16 03:34:56 +02:00

src/WIF.cpp: fix integer comparison between different sizes warning.

This commit is contained in:
Henrik Hautakoski 2023-04-10 16:50:23 +02:00
parent 7fc83991bc
commit ac3facf30b

View file

@ -58,7 +58,7 @@ std::string wif_priv_encode(const ec_privkey_t& priv, const std::string& prefix)
bool wif_priv_decode(ec_privkey_t& priv, const std::string& data) {
uint8_t offset;
std::size_t offset;
std::vector<unsigned char> buf;
internal::priv_decoder_t decoder = internal::priv_decoder_legacy;
@ -99,7 +99,7 @@ std::string wif_pub_encode(const ec_pubkey_t& pub, const std::string& prefix) {
bool wif_pub_decode(ec_pubkey_t& pub, const std::string& data) {
internal::pub_decoder_t decoder = internal::pub_decoder_legacy;
int offset;
std::size_t offset;
std::vector<unsigned char> buf;
// Check prefix