Commit 4922bb41 authored by Jacky Tian's avatar Jacky Tian

static_cast size parameter in StringRef constructor to size_t

parent aad86975
......@@ -2041,7 +2041,7 @@ StringRef get_x509_serial(BlockAllocator &balloc, X509 *x) {
auto n = BN_bn2bin(bn, b.data());
assert(n <= 20);
return util::format_hex(balloc, StringRef{b.data(), n});
return util::format_hex(balloc, StringRef{b.data(), static_cast<size_t>(n)});
}
namespace {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment