Fix error

This commit is contained in:
Alexey Milovidov 2021-03-26 01:56:24 +03:00
parent a8ce138788
commit ad66c4a916
2 changed files with 2 additions and 2 deletions

View File

@ -61,9 +61,9 @@ size_t CompressedReadBuffer::readBig(char * to, size_t n)
memory.resize(size_decompressed + additional_size_at_the_end_of_buffer);
working_buffer = Buffer(memory.data(), &memory[size_decompressed]);
pos = working_buffer.begin();
decompress(working_buffer, size_decompressed, size_compressed_without_checksum);
pos = working_buffer.begin();
bytes_read += read(to + bytes_read, n - bytes_read);
break;

View File

@ -122,9 +122,9 @@ size_t CompressedReadBufferFromFile::readBig(char * to, size_t n)
memory.resize(size_decompressed + additional_size_at_the_end_of_buffer);
working_buffer = Buffer(memory.data(), &memory[size_decompressed]);
pos = working_buffer.begin();
decompress(working_buffer, size_decompressed, size_compressed_without_checksum);
pos = working_buffer.begin();
bytes_read += read(to + bytes_read, n - bytes_read);
break;