From 4922bb41d604a15483e12f1b33bac2bf6628d866 Mon Sep 17 00:00:00 2001 From: Jacky Tian Date: Tue, 31 Mar 2020 00:54:08 -0700 Subject: [PATCH] static_cast size parameter in StringRef constructor to size_t --- src/shrpx_tls.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_tls.cc b/src/shrpx_tls.cc index 83b148a6..c5625303 100644 --- a/src/shrpx_tls.cc +++ b/src/shrpx_tls.cc @@ -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(n)}); } namespace {