Skip to content

Commit

Permalink
Replace unchecked((uint)-1) with uint.MaxValue
Browse files Browse the repository at this point in the history
  • Loading branch information
dthorpe committed Nov 7, 2014
1 parent 6ca8951 commit 1227e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NBitcoin/Transaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public bool IsNull
{
get
{
return (hash == 0 && n == unchecked((uint)-1));
return (hash == 0 && n == uint.MaxValue);
}
}
private uint256 hash;
Expand Down

0 comments on commit 1227e8b

Please sign in to comment.