Skip to content

Commit

Permalink
fix subcode mask (#1563)
Browse files Browse the repository at this point in the history
  • Loading branch information
mregen committed Nov 1, 2021
1 parent 980b9f1 commit 96eb6c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Stack/Opc.Ua.Core/Types/BuiltIn/StatusCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ public StatusCode SetFlagBits(uint bits)
/// </remarks>
public uint SubCode
{
get { return m_code & 0x0FFF000; }
set { m_code = 0x0FFF000 & value; }
get { return m_code & 0x0FFF0000; }
set { m_code = 0x0FFF0000 & value; }
}
#endregion

Expand Down

0 comments on commit 96eb6c8

Please sign in to comment.