aboutsummaryrefslogtreecommitdiffstats
path: root/src/ber_dec.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/ber_dec.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/ber_dec.cpp')
-rw-r--r--src/ber_dec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ber_dec.cpp b/src/ber_dec.cpp
index 251cf952b..5df9a2c35 100644
--- a/src/ber_dec.cpp
+++ b/src/ber_dec.cpp
@@ -453,7 +453,7 @@ BER_Decoder& BER_Decoder::decode_optional_string(MemoryRegion<byte>& out,
{
BER_Object obj = get_next_object();
- ASN1_Tag type_tag = (ASN1_Tag)type_no;
+ ASN1_Tag type_tag = static_cast<ASN1_Tag>(type_no);
out.clear();
push_back(obj);