Skip to content

Commit

Permalink
Use the explicit type std::size_t when completing the transfer_op
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtum committed Nov 15, 2023
1 parent 788e079 commit dd3f692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/beast/core/impl/basic_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class transfer_op
// This can occur even if an existing async_read is in progress.
// In this specific case, we will complete the async op with no error
// in order to prevent assertions and/or internal corruption of the basic_stream
this->complete(false, error_code(), 0);
this->complete(false, error_code(), std::size_t{0});
}
else
{
Expand Down

0 comments on commit dd3f692

Please sign in to comment.