diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h index bd3e6e9..edd0891 100644 --- a/include/jwt-cpp/jwt.h +++ b/include/jwt-cpp/jwt.h @@ -438,7 +438,8 @@ namespace jwt { const auto decodedStr = decode(cert_base64_der_str); auto c_str = reinterpret_cast(decodedStr.c_str()); - std::unique_ptr cert(d2i_X509(NULL, &c_str, decodedStr.size()), X509_free); + std::unique_ptr cert( + d2i_X509(NULL, &c_str, static_cast(decodedStr.size())), X509_free); std::unique_ptr certbio(BIO_new(BIO_s_mem()), BIO_free_all); if (!cert || !certbio) { ec = error::rsa_error::create_mem_bio_failed;