aboutsummaryrefslogtreecommitdiffstats
path: root/src/x509_ext.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-07-23 15:44:04 +0000
committerlloyd <[email protected]>2007-07-23 15:44:04 +0000
commite2f1f734277146d817ab284dea21e4013cb5b937 (patch)
tree21ad6ee775e36aa7fb24a504077200c22b1f15b8 /src/x509_ext.cpp
parent211c4929ae92106794984d872a0cae1a873baa29 (diff)
Avoid C-style casts (as detected by GCC's -Wold-style-cast) and instead use
static_cast or reinterpret_cast, as needed.
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);
}
/*************************************************