fixes
This commit is contained in:
parent
18a2371883
commit
4c8e35e0f8
@ -59,7 +59,7 @@ inline std::string getAddress(const Address& rawAddr) noexcept {
|
||||
inline std::string KeyToString(const unsigned char* key) noexcept {
|
||||
char result[65];
|
||||
const char* hexDigits = "0123456789abcdef";
|
||||
for (size_t i = 0; i < 32; ++i) {
|
||||
for (unsigned char i = 0; i < 32; i++) {
|
||||
result[2 * i] = hexDigits[key[i] >> 4];
|
||||
result[2 * i + 1] = hexDigits[key[i] & 0x0F];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user