Fix warning in zlib

This commit is contained in:
Vinnie Falco
2017-07-09 13:17:12 -07:00
parent 6a46e48424
commit ff05be32af
2 changed files with 4 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ Version 78:
* Add span * Add span
* Documentation work * Documentation work
* Use make_unique_noinit * Use make_unique_noinit
* Fix warning in zlib
HTTP: HTTP:

View File

@@ -1059,8 +1059,9 @@ doWrite(z_params& zs, boost::optional<Flush> flush, error_code& ec)
return; return;
} }
} }
else if(zs.avail_in == 0 && flush <= old_flush && else if(zs.avail_in == 0 && (
flush != Flush::finish) old_flush && flush <= *old_flush
) && flush != Flush::finish)
{ {
/* Make sure there is something to do and avoid duplicate consecutive /* Make sure there is something to do and avoid duplicate consecutive
* flushes. For repeated and useless calls with Flush::finish, we keep * flushes. For repeated and useless calls with Flush::finish, we keep