Skip to content

Commit

Permalink
Re-enable an assert in BigInteger (dotnet#91158)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob-Hague authored Sep 5, 2023
1 parent eab269e commit 47ab18f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3150,8 +3150,8 @@ private void AssertValid()
Debug.Assert(_bits.Length > 0);
// Wasted space: _bits[0] could have been packed into _sign
Debug.Assert(_bits.Length > 1 || _bits[0] >= kuMaskHighBit);
//// Wasted space: leading zeros could have been truncated // TODO: https://github.com/dotnet/runtime/issues/84991
//Debug.Assert(_bits[_bits.Length - 1] != 0);
// Wasted space: leading zeros could have been truncated
Debug.Assert(_bits[_bits.Length - 1] != 0);
// Arrays larger than this can't fit into a Span<byte>
Debug.Assert(_bits.Length <= MaxLength);
}
Expand Down

0 comments on commit 47ab18f

Please sign in to comment.