From dd3f692e7dec8bd4a38e318350bcc74457b08319 Mon Sep 17 00:00:00 2001 From: Mohammad Nejati Date: Tue, 14 Nov 2023 17:24:38 +0000 Subject: [PATCH] Use the explicit type std::size_t when completing the transfer_op Fixes #2766 --- include/boost/beast/core/impl/basic_stream.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/beast/core/impl/basic_stream.hpp b/include/boost/beast/core/impl/basic_stream.hpp index 09337cde..e3cb83f0 100644 --- a/include/boost/beast/core/impl/basic_stream.hpp +++ b/include/boost/beast/core/impl/basic_stream.hpp @@ -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 {