diff options
Diffstat (limited to 'crypto/src/asn1/Asn1InputStream.cs')
-rw-r--r-- | crypto/src/asn1/Asn1InputStream.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/Asn1InputStream.cs b/crypto/src/asn1/Asn1InputStream.cs index da6175fcc..aa91cdf62 100644 --- a/crypto/src/asn1/Asn1InputStream.cs +++ b/crypto/src/asn1/Asn1InputStream.cs @@ -28,7 +28,7 @@ namespace Org.BouncyCastle.Asn1 return asn1.Limit; if (input is MemoryStream memory) - return (int)(memory.Length - memory.Position); + return Convert.ToInt32(memory.Length - memory.Position); return int.MaxValue; } |