Fixed _lastBlockIndex assignment.

This commit is contained in:
Marek Lemańczyk committed 2023-03-01 00:22:27 +01:00
1 parent 681cd179d2
commit 5d9526a9f9
1 file changed
+4 -4
+4 -4
View File
@@ -287,7 +287,7 @@ namespace Recyclable.Collections
}
_longCount = targetCapacity;
_lastBlockIndex = targetBlockIdx - 1;
_lastBlockIndex = targetBlockIdx;
_nextItemIndex = targetItemIdx;
}
@@ -324,7 +324,7 @@ namespace Recyclable.Collections
}
_longCount = targetCapacity;
_lastBlockIndex = targetBlockIdx - 1;
_lastBlockIndex = targetBlockIdx;
_nextItemIndex = targetItemIdx;
}
@@ -361,7 +361,7 @@ namespace Recyclable.Collections
}
_longCount = targetCapacity;
_lastBlockIndex = targetBlockIdx - 1;
_lastBlockIndex = targetBlockIdx;
_nextItemIndex = targetItemIdx;
}
@@ -484,7 +484,7 @@ namespace Recyclable.Collections
}
_longCount = targetItemIdx;
_lastBlockIndex = targetBlockIdx - 1;
_lastBlockIndex = targetBlockIdx;
_nextItemIndex = targetItemIdx;
}