diff options
Diffstat (limited to 'crypto/src/asn1/x9/X9ECParameters.cs')
-rw-r--r-- | crypto/src/asn1/x9/X9ECParameters.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/x9/X9ECParameters.cs b/crypto/src/asn1/x9/X9ECParameters.cs index 077f74ce4..0f6d85765 100644 --- a/crypto/src/asn1/x9/X9ECParameters.cs +++ b/crypto/src/asn1/x9/X9ECParameters.cs @@ -54,9 +54,9 @@ namespace Org.BouncyCastle.Asn1.X9 this.curve = x9c.Curve; object p = seq[3]; - if (p is X9ECPoint) + if (p is X9ECPoint x9) { - this.g = (X9ECPoint)p; + this.g = x9; } else { |