Skip to content

Commit

Permalink
#if DEBUG private static #else private const (#96538)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzrnm authored Jan 10, 2024
1 parent e18508c commit 766716b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,13 @@ internal static ParsingStatus TryParseBigIntegerBinaryNumberStyle(ReadOnlySpan<c
// algorithm with a running time of O(N^2). And if it is greater than the threshold, use
// a divide-and-conquer algorithm with a running time of O(NlogN).
//
private static int s_naiveThreshold = 20000; // non-readonly for testing
#if DEBUG
// Mutable for unit testing...
private static
#else
private const
#endif
int s_naiveThreshold = 20000;
private static ParsingStatus NumberToBigInteger(ref NumberBuffer number, out BigInteger result)
{
int currentBufferSize = 0;
Expand Down

0 comments on commit 766716b

Please sign in to comment.