fixing C/C++ CI errors

This commit is contained in:
Matt Hess
2025-12-17 03:28:41 +00:00
parent 79e34fdfbb
commit 27dfd4788b
6 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -179,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%llx", static_cast<unsigned long long>(tag));
m_prefix = tag;
@@ -211,7 +211,7 @@ bool Wallet::decode(const char* address)
for (int i = 0; i < std::min(data_index, 80); i++) {
sprintf(data_hex + i*2, "%02x", data[i]);
}
sprintf(prefix_hex, "0x%lx", m_prefix);
sprintf(prefix_hex, "0x%llx", static_cast<unsigned long long>(m_prefix));
LOGINFO(6, "decode varint_len=" << varint_len << " data_index=" << data_index << " prefix=" << static_cast<const char*>(prefix_hex));
LOGINFO(6, "decode raw_data: " << static_cast<const char*>(data_hex));
LOGINFO(6, "decode spend: " << static_cast<const char*>(spend_hex));