We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5a6a14 commit 60045c2Copy full SHA for 60045c2
src/libraries/System.Runtime.Numerics/src/System/Number.BigInteger.cs
@@ -657,7 +657,13 @@ internal static ParsingStatus TryParseBigIntegerBinaryNumberStyle(ReadOnlySpan<c
657
// algorithm with a running time of O(N^2). And if it is greater than the threshold, use
658
// a divide-and-conquer algorithm with a running time of O(NlogN).
659
//
660
- private static int s_naiveThreshold = 20000; // non-readonly for testing
+#if DEBUG
661
+ // Mutable for unit testing...
662
+ private static
663
+#else
664
+ private const
665
+#endif
666
+ int s_naiveThreshold = 20000;
667
private static ParsingStatus NumberToBigInteger(ref NumberBuffer number, out BigInteger result)
668
{
669
int currentBufferSize = 0;
0 commit comments