[twincat] TwinCAT — Int64 fidelity for LINT/ULINT #341
Reference in New Issue
Block a user
Delete Branch "auto/twincat/1.1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Closes the silent Int32 truncation of
LINT/ULINTin TwinCAT.TwinCATDataType.ToDriverDataType()—LInt → Int64,ULInt → UInt64. Two arms split out, "matches Int64 gap" truncation comment removed.AdsTwinCATClient.MapToClrTypealready returnedlong/ulongand the value-coercion path (Convert.ToInt64/Convert.ToUInt64) was already correct, so no client changes were needed.Test plan
dotnet build src/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT— clean (0 / 0)dotnet test tests/ZB.MOM.WW.OtOpcUa.Driver.TwinCAT.Tests— 110 / 110 passed (2 new asserts inDataType_mapping_covers_atomic_iec_typesforLInt → Int64andULInt → UInt64)🤖 Auto-generated by the Mode-B execution loop. Closes #305.
Closes #305