Fixed compiler warning

This commit is contained in:
2021-09-16 17:43:46 +02:00
parent 7a4ebc5f4a
commit 6274c103b4

View File

@ -66,7 +66,7 @@ std::string toHexString(std::basic_string_view<unsigned char> buf)
std::string hex(buf.size() * 2 + 1, {});
assert(hex.size() == buf.size() * 2 + 1);
const char *ptr = sodium_bin2hex(hex.data(), hex.size(), buf.data(), buf.size());
sodium_bin2hex(hex.data(), hex.size(), buf.data(), buf.size());
hex.resize(hex.size() - 1);
assert(hex.size() == buf.size() * 2);