File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2564,7 +2564,7 @@ class gzip_compressor : public compressor {
25642564
25652565 std::array<char , CPPHTTPLIB_COMPRESSION_BUFSIZ> buff{};
25662566 do {
2567- strm_.avail_out = buff.size ();
2567+ strm_.avail_out = static_cast <uInt>( buff.size () );
25682568 strm_.next_out = reinterpret_cast <Bytef *>(buff.data ());
25692569
25702570 ret = deflate (&strm_, flush);
@@ -2615,7 +2615,7 @@ class gzip_decompressor : public decompressor {
26152615
26162616 std::array<char , CPPHTTPLIB_COMPRESSION_BUFSIZ> buff{};
26172617 while (strm_.avail_in > 0 ) {
2618- strm_.avail_out = buff.size ();
2618+ strm_.avail_out = static_cast <uInt>( buff.size () );
26192619 strm_.next_out = reinterpret_cast <Bytef *>(buff.data ());
26202620
26212621 ret = inflate (&strm_, Z_NO_FLUSH);
You can’t perform that action at this time.
0 commit comments