You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi drasil,
One more problem. The compiler seems to use a "signed long" for all integers in an ASN1 file.
I have an unsigned integer as follow which is parsed as a signed long:
byteCounter [0] INTEGER (0..18446744073709551615),
`
This is parsed as a signed integer in C#"
private long byteCounter_ ;
[ASN1Integer( Name = "" )]
[ASN1ValueRangeConstraint (
Min = 0L,
Max = 18446744073709551615L
) ]
[ASN1Element ( Name = "byteCounter", IsOptional = false , HasTag = true, Tag = 0 , HasDefaultValue = false ) ]
Visual Studio Error:
Error CS0266 Cannot implicitly convert type 'ulong' to 'long'. An explicit conversion exists (are you missing a cast?)
The text was updated successfully, but these errors were encountered:
Hi drasil,
One more problem. The compiler seems to use a "signed long" for all integers in an ASN1 file.
I have an unsigned integer as follow which is parsed as a signed long:
byteCounter [0] INTEGER (0..18446744073709551615),
`
This is parsed as a signed integer in C#"
Visual Studio Error:
The text was updated successfully, but these errors were encountered: