[build] more win build

This commit is contained in:
Timothy Stack 2020-09-10 22:15:02 -07:00
parent 783c23b62c
commit 16c5fdccb4

View File

@ -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;