Skip to content

Commit

Permalink
Fix '< StackAllocThreshold' to '<= StackAllocThreshold'
Browse files Browse the repository at this point in the history
  • Loading branch information
kzrnm committed Feb 5, 2025
1 parent 177256c commit efcf4e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ internal static bool TryFormatBigInteger(BigInteger value, ReadOnlySpan<char> fo

int base1E9BufferLength = (int)(value._bits.Length * digitRatio) + 1;
uint[]? base1E9BufferFromPool = null;
Span<uint> base1E9Buffer = base1E9BufferLength < BigIntegerCalculator.StackAllocThreshold ?
Span<uint> base1E9Buffer = base1E9BufferLength <= BigIntegerCalculator.StackAllocThreshold ?
stackalloc uint[base1E9BufferLength] :
(base1E9BufferFromPool = ArrayPool<uint>.Shared.Rent(base1E9BufferLength));
base1E9Buffer.Clear();
Expand Down

0 comments on commit efcf4e1

Please sign in to comment.