mirror of
https://github.com/tstack/lnav
synced 2024-11-17 15:29:40 +00:00
[build] more win build
This commit is contained in:
parent
783c23b62c
commit
16c5fdccb4
@ -261,8 +261,9 @@ void line_buffer::gz_indexed::seek(size_t offset)
|
||||
// Stream from compressed file until we reach our offset
|
||||
unsigned char dummy[Z_BUFSIZE];
|
||||
while ( offset > this->strm.total_out) {
|
||||
size_t to_copy = std::min(static_cast<size_t>(Z_BUFSIZE),
|
||||
offset - this->strm.total_out);
|
||||
size_t to_copy = std::min(
|
||||
static_cast<size_t>(Z_BUFSIZE),
|
||||
static_cast<size_t>(offset - this->strm.total_out));
|
||||
auto bytes = stream_data(dummy, to_copy);
|
||||
if (bytes <= 0) {
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user