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
|
// Stream from compressed file until we reach our offset
|
||||||
unsigned char dummy[Z_BUFSIZE];
|
unsigned char dummy[Z_BUFSIZE];
|
||||||
while ( offset > this->strm.total_out) {
|
while ( offset > this->strm.total_out) {
|
||||||
size_t to_copy = std::min(static_cast<size_t>(Z_BUFSIZE),
|
size_t to_copy = std::min(
|
||||||
offset - this->strm.total_out);
|
static_cast<size_t>(Z_BUFSIZE),
|
||||||
|
static_cast<size_t>(offset - this->strm.total_out));
|
||||||
auto bytes = stream_data(dummy, to_copy);
|
auto bytes = stream_data(dummy, to_copy);
|
||||||
if (bytes <= 0) {
|
if (bytes <= 0) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user