Crash when compressing large list of negative numbers
fredjekrueger opened this issue · comments
Dear,
when compressing a large list (500.000 items) of only negative numbers, the compression algorithm crashes with an out of bounds exception. Simple sample program:
static void Main(string[] args)
{
var intCompressor = new IntCompressor();
var list = new List<int>();
for(int i = 0; i < 500000; i++)
{
list.Add(-i);
}
var z = intCompressor.compress(list.ToArray());
}