diff --git a/src/wallet.cpp b/src/wallet.cpp index fb99063..d3203ba 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -23,6 +23,7 @@ #include "keccak.h" #include "crypto.h" #include +#include extern "C" { #include "crypto-ops.h" @@ -178,7 +179,7 @@ bool Wallet::decode(const char* address) } char hex_buf[32]; - snprintf(hex_buf, sizeof(hex_buf), "0x%lx", tag); + snprintf(hex_buf, sizeof(hex_buf), "0x%" PRIx64, tag); m_prefix = tag;