From 5d9526a9f9bb96ee1cf5ffa1530927e04d2f2efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Lema=C5=84czyk?= Date: Wed, 1 Mar 2023 00:22:27 +0100 Subject: [PATCH] Fixed _lastBlockIndex assignment. --- Recyclable.Collections/RecyclableList.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Recyclable.Collections/RecyclableList.cs b/Recyclable.Collections/RecyclableList.cs index 5fecbe4..c26038c 100644 --- a/Recyclable.Collections/RecyclableList.cs +++ b/Recyclable.Collections/RecyclableList.cs @@ -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; }