aboutsummaryrefslogtreecommitdiffstats
path: root/src/x509_ext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/x509_ext.cpp')
-rw-r--r--src/x509_ext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/x509_ext.cpp b/src/x509_ext.cpp
index a96f9ae42..65ea2872c 100644
--- a/src/x509_ext.cpp
+++ b/src/x509_ext.cpp
@@ -525,7 +525,7 @@ void CRL_Number::contents_to(Data_Store& info, Data_Store&) const
MemoryVector<byte> CRL_ReasonCode::encode_inner() const
{
return DER_Encoder()
- .encode((u32bit)reason, ENUMERATED, UNIVERSAL)
+ .encode(static_cast<u32bit>(reason), ENUMERATED, UNIVERSAL)
.get_contents();
}
@@ -536,7 +536,7 @@ void CRL_ReasonCode::decode_inner(const MemoryRegion<byte>& in)
{
u32bit reason_code = 0;
BER_Decoder(in).decode(reason_code, ENUMERATED, UNIVERSAL);
- reason = (CRL_Code)reason_code;
+ reason = static_cast<CRL_Code>(reason_code);
}
/*************************************************