diff --git a/include/boost/beast/core/impl/basic_stream.hpp b/include/boost/beast/core/impl/basic_stream.hpp index 09337cded7..e3cb83f0b2 100644 --- a/include/boost/beast/core/impl/basic_stream.hpp +++ b/include/boost/beast/core/impl/basic_stream.hpp @@ -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 {