Skip to content

Commit e4b6b44

Browse files
committed
fixed bug when Convert.ToUInt64 fails to convert BigInteger, because Convert.ToUInt64 expects IConvertible which isn't implemented by BigInteger.
1 parent 446ba00 commit e4b6b44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Asn1Parser/Universal/Asn1Enumerated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ void m_decode(Asn1Reader asn) {
5353
if (value > UInt64.MaxValue) {
5454
throw new InvalidDataException(String.Format(InvalidType, TYPE.ToString()));
5555
}
56-
Value = Convert.ToUInt64(value);
56+
Value = (UInt64)value;
5757
}
5858
}

0 commit comments

Comments
 (0)