Skip to content

Commit

Permalink
fix uint zero minus
Browse files Browse the repository at this point in the history
  • Loading branch information
KickSeason committed Aug 12, 2020
1 parent e3de92c commit f18a1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/Ledger/Blockchain.State.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private VerifyResult PersistCnStateRoot(StateRoot root)

private void CheckStateRootCache()
{
var index = Height - 1;
var index = (long)Height - 1;
if (0 <= index && state_root_cache.TryGetValue(index, out StateRoot root))
{
state_root_cache.Remove(index);
Expand Down

0 comments on commit f18a1b3

Please sign in to comment.