static_cast size parameter in StringRef constructor to size_t
This commit is contained in:
parent
aad8697575
commit
4922bb41d6
|
@ -2041,7 +2041,7 @@ StringRef get_x509_serial(BlockAllocator &balloc, X509 *x) {
|
||||||
auto n = BN_bn2bin(bn, b.data());
|
auto n = BN_bn2bin(bn, b.data());
|
||||||
assert(n <= 20);
|
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 {
|
namespace {
|
||||||
|
|
Loading…
Reference in New Issue