OPCFoundation / UA-ModelCompiler

ModelCompiler converts XML files into C# and ANSI C
MIT License
151 stars 94 forks source link

OverflowException for enum #183

Closed ancapaul closed 3 months ago

ancapaul commented 3 months ago

I tried to add the following field to an enum:

But I'm getting the following error:

[InvalidOperationException] There is an error in XML document (35, 33).

[OverflowException] Value was either too large or too small for an Int32.

I don't see why this should happen the min and max of a 32 bit int should be -2147483648 and 2147483647.

opcfoundation-org commented 3 months ago

It is out of range: 2147483648 > 2147483647

ancapaul commented 3 months ago

🤦