mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 20:37:31 +02:00
Use the explicit type std::size_t when completing the transfer_op
Fixes #2766
This commit is contained in:
committed by
Mohammad Nejati
parent
788e07916c
commit
dd3f692e7d
@ -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