aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/x509
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-12-04 09:35:41 -0500
committerJack Lloyd <[email protected]>2018-12-04 09:35:41 -0500
commit4e16f683d7fd3a2ab0553c9423fc725798cd899f (patch)
tree208f30df5b1922442e2804c5c9299659bc99c77a /src/lib/x509
parent50de06c585609d969da5b9ab5812e62328bacaee (diff)
Silence MSVC warnings
static_casts for the compiler god
Diffstat (limited to 'src/lib/x509')
-rw-r--r--src/lib/x509/x509cert.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/x509/x509cert.cpp b/src/lib/x509/x509cert.cpp
index 9ed521f16..5bc04a9a2 100644
--- a/src/lib/x509/x509cert.cpp
+++ b/src/lib/x509/x509cert.cpp
@@ -343,7 +343,7 @@ const X509_Certificate_Data& X509_Certificate::data() const
uint32_t X509_Certificate::x509_version() const
{
- return data().m_version;
+ return static_cast<uint32_t>(data().m_version);
}
bool X509_Certificate::is_self_signed() const
@@ -447,7 +447,7 @@ bool X509_Certificate::is_CA_cert() const
uint32_t X509_Certificate::path_limit() const
{
- return data().m_path_len_constraint;
+ return static_cast<uint32_t>(data().m_path_len_constraint);
}
Key_Constraints X509_Certificate::constraints() const