Skip to content

Commit b2ed4a1

Browse files
committed
Fixing warning about casting to DWORD on x64.
1 parent 09239bb commit b2ed4a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/src/http/client/x509_cert_utilities.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ bool verify_X509_cert_chain(const std::vector<std::string> &certChain, const std
132132
cert_context cert(CertCreateCertificateContext(
133133
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
134134
reinterpret_cast<const unsigned char *>(certChain[0].c_str()),
135-
certChain[0].size()));
135+
static_cast<DWORD>(certChain[0].size())));
136136
if (cert == nullptr)
137137
{
138138
return false;

0 commit comments

Comments
 (0)