static_cast size parameter in StringRef constructor to size_t

This commit is contained in:
Jacky Tian 2020-03-31 00:54:08 -07:00
parent aad8697575
commit 4922bb41d6
1 changed files with 1 additions and 1 deletions

View File

@ -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 {