From 16c5fdccb46e32b47aff5be931bbf07531474fac Mon Sep 17 00:00:00 2001 From: Timothy Stack Date: Thu, 10 Sep 2020 22:15:02 -0700 Subject: [PATCH] [build] more win build --- src/line_buffer.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/line_buffer.cc b/src/line_buffer.cc index fa03b798..3a7176ac 100644 --- a/src/line_buffer.cc +++ b/src/line_buffer.cc @@ -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(Z_BUFSIZE), - offset - this->strm.total_out); + size_t to_copy = std::min( + static_cast(Z_BUFSIZE), + static_cast(offset - this->strm.total_out)); auto bytes = stream_data(dummy, to_copy); if (bytes <= 0) { break;