diff options
Diffstat (limited to 'crypto/src/asn1/x509/Target.cs')
-rw-r--r-- | crypto/src/asn1/x509/Target.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/asn1/x509/Target.cs b/crypto/src/asn1/x509/Target.cs index eff740143..da3ccccae 100644 --- a/crypto/src/asn1/x509/Target.cs +++ b/crypto/src/asn1/x509/Target.cs @@ -62,12 +62,12 @@ namespace Org.BouncyCastle.Asn1.X509 private Target( Asn1TaggedObject tagObj) { - switch ((Choice) tagObj.TagNo) + switch (tagObj.TagNo) { - case Choice.Name: // GeneralName is already a choice so explicit + case (int)Choice.Name: // GeneralName is already a choice so explicit targetName = GeneralName.GetInstance(tagObj, true); break; - case Choice.Group: + case (int)Choice.Group: targetGroup = GeneralName.GetInstance(tagObj, true); break; default: |