summary refs log tree commit diff
path: root/crypto/src/asn1/ASN1StreamParser.cs
diff options
context:
space:
mode:
authorRoy Basmacier <roy.basmacier@keyfactor.com>2022-06-24 16:19:02 -0400
committerRoy Basmacier <roy.basmacier@keyfactor.com>2022-06-24 16:19:02 -0400
commit5ce0ecf7d31b462bd14c51a9e1f6514dc188c17c (patch)
tree9236aa449ab6b2c2142f3f8b0065078e125c2603 /crypto/src/asn1/ASN1StreamParser.cs
parentsphincs plus v3.1 (diff)
parentRefactoring (diff)
downloadBouncyCastle.NET-ed25519-5ce0ecf7d31b462bd14c51a9e1f6514dc188c17c.tar.xz
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'crypto/src/asn1/ASN1StreamParser.cs')
-rw-r--r--crypto/src/asn1/ASN1StreamParser.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/ASN1StreamParser.cs b/crypto/src/asn1/ASN1StreamParser.cs
index f805f68a5..490b20ccf 100644
--- a/crypto/src/asn1/ASN1StreamParser.cs
+++ b/crypto/src/asn1/ASN1StreamParser.cs
@@ -235,9 +235,9 @@ namespace Org.BouncyCastle.Asn1
 
 		private void Set00Check(bool enabled)
 		{
-			if (_in is IndefiniteLengthInputStream)
+			if (_in is IndefiniteLengthInputStream indef)
 			{
-				((IndefiniteLengthInputStream)_in).SetEofOn00(enabled);
+				indef.SetEofOn00(enabled);
 			}
 		}
 	}