Skip to content

Commit 8803c47

Browse files
committed
Make debug build again
1 parent cac54b4 commit 8803c47

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Src/FastData/Internal/Analysis/Analyzers/GPerfAnalyzer.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,8 @@ public void RemoveLast(int index)
590590

591591
private sealed class AssociationTable(ILogger logger)
592592
{
593+
private int _maxHash;
594+
593595
internal int[] Values { get; private set; }
594596
internal int[] Occurrences { get; private set; }
595597
internal BoolArray CollisionDetector { get; private set; }
@@ -651,7 +653,7 @@ internal bool TryFindGoodValues(List<Keyword> keywords, int[] positions, int[] a
651653
assoValueMax++;
652654

653655
// Given the bound for _asso_values[c], we have a bound for the possible hash values, as computed in compute_hash().
654-
int _maxHash = (assoValueMax - 1) * maxSelCharsLength;
656+
_maxHash = (assoValueMax - 1) * maxSelCharsLength;
655657

656658
// Allocate a sparse bit vector for detection of collisions of hash values.
657659
CollisionDetector = new BoolArray(_maxHash + 1, logger);
@@ -939,10 +941,10 @@ It seems simpler to choose the latter solution. */
939941
assoValueMax = step.AssoValueMax;
940942

941943
// Reinitialize MaxHash.
942-
int maxHash = (assoValueMax - 1) * maxSelCharsLength;
944+
_maxHash = (assoValueMax - 1) * maxSelCharsLength;
943945

944946
// Reinitialize CollisionDetector.
945-
CollisionDetector = new BoolArray(maxHash + 1, logger);
947+
CollisionDetector = new BoolArray(_maxHash + 1, logger);
946948
}
947949
}
948950
}

0 commit comments

Comments
 (0)