forked from boostorg/beast
Use the explicit type std::size_t when completing the transfer_op
Fixes #2766
This commit is contained in:
1 parent
788e07916c
commit
dd3f692e7d
1 file changed
+1
-1
@@ -297,7 +297,7 @@ public:
|
||||
// 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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user