Skip to content

Commit 67a0df1

Browse files
authored
Fix read of NodeId attribute AccessRestrictions by casting return type from Enum to ushort (#2883)
In the read NodeId servcie call an enum is by default cast to Int32, so the cast to ushort is needed here to return the expected type for the AccessRestrictions.
1 parent 6c62eb2 commit 67a0df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Stack/Opc.Ua.Core/Stack/State/NodeState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3669,7 +3669,7 @@ protected virtual ServiceResult ReadNonValueAttribute(
36693669

36703670
if (ServiceResult.IsGood(result))
36713671
{
3672-
value = accessRestrictions;
3672+
value = (ushort)accessRestrictions;
36733673
}
36743674

36753675
if (value != null || result != null)

0 commit comments

Comments
 (0)