Skip to content

Commit

Permalink
Use explicit type definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShikiSuen committed Feb 13, 2025
1 parent 6180c21 commit acbcdd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Megrez/src/0_CSharpExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ private int FindInsertionPoint(T element) {
}

private void SwitchToHeap() {
var backupStorage = (T[])_storage.Clone();
var backupCount = Count;
T[] backupStorage = (T[])_storage.Clone();
int backupCount = Count;

try {
_usingArray = false;
Expand Down
2 changes: 1 addition & 1 deletion Megrez/src/1_Compositor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ public void Clear() {
/// </summary>
public void DropNodesBeyondMaxSpanLength() {
if (Spans.IsEmpty()) return;
var indicesOfPositions = new BRange(0, Spans.Count - 1).ToList();
List<int> indicesOfPositions = new BRange(0, Spans.Count - 1).ToList();
foreach (int currentPos in indicesOfPositions) {
foreach (int currentSpanLength in Spans[currentPos].Nodes.Keys) {
if (currentSpanLength > MaxSpanLength) {
Expand Down

0 comments on commit acbcdd4

Please sign in to comment.