mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 05:17:26 +02:00
Fix warning in zlib
This commit is contained in:
@ -3,6 +3,7 @@ Version 78:
|
||||
* Add span
|
||||
* Documentation work
|
||||
* Use make_unique_noinit
|
||||
* Fix warning in zlib
|
||||
|
||||
HTTP:
|
||||
|
||||
|
@ -1059,8 +1059,9 @@ doWrite(z_params& zs, boost::optional<Flush> flush, error_code& ec)
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if(zs.avail_in == 0 && flush <= old_flush &&
|
||||
flush != Flush::finish)
|
||||
else if(zs.avail_in == 0 && (
|
||||
old_flush && flush <= *old_flush
|
||||
) && flush != Flush::finish)
|
||||
{
|
||||
/* Make sure there is something to do and avoid duplicate consecutive
|
||||
* flushes. For repeated and useless calls with Flush::finish, we keep
|
||||
|
Reference in New Issue
Block a user