diff --git a/Snappier/Internal/HashTable.cs b/Snappier/Internal/HashTable.cs index 0edae1a..c3320dd 100644 --- a/Snappier/Internal/HashTable.cs +++ b/Snappier/Internal/HashTable.cs @@ -25,7 +25,7 @@ public void EnsureCapacity(int inputSize) var maxFragmentSize = Math.Min(inputSize, (int) Constants.BlockSize); var tableSize = CalculateTableSize(maxFragmentSize); - if (_buffer is null || tableSize < _buffer.Length) + if (_buffer is null || tableSize > _buffer.Length) { if (_buffer is not null) {