Skip to content

Commit

Permalink
Sec native id. Small fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikasoukhov committed May 12, 2017
1 parent e263d4b commit 55fa2b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Algo/SecurityNativeIdMessageAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,9 @@ private void OnStorageNewIdentifierAdded(string storageName, SecurityId security

if (added)
{
securityId.Native = nativeId;
RaiseNewOutMessage(new ProcessSuspendedSecurityMessage(this, securityId));
var temp = securityId;
temp.Native = nativeId;
RaiseNewOutMessage(new ProcessSuspendedSecurityMessage(this, temp));
}
}

Expand Down
4 changes: 2 additions & 2 deletions Messages/SecurityId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ public object Native
{
_native = value;

_nativeAsInt = 0;

if (value is long)
_nativeAsInt = (long)value;
else if (value == null)
_nativeAsInt = 0;
}
}

Expand Down

0 comments on commit 55fa2b8

Please sign in to comment.