From 26c97e45be48167fb15b25ea72129b10bcc2cd09 Mon Sep 17 00:00:00 2001 From: Tim Oesterreich Date: Wed, 6 Mar 2019 10:59:40 +0100 Subject: don't pass int to size_t --- src/lib/tls/asio/asio_stream.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/tls/asio') diff --git a/src/lib/tls/asio/asio_stream.h b/src/lib/tls/asio/asio_stream.h index 38d8c195a..224bf5fa7 100644 --- a/src/lib/tls/asio/asio_stream.h +++ b/src/lib/tls/asio/asio_stream.h @@ -198,7 +198,7 @@ class Stream : public StreamBase AsyncHandshakeOperation::type, Stream> op{std::move(init.completion_handler), *this, this->m_core}; - op({}, 0, false); + op({}, std::size_t(0), false); return init.result.get(); } @@ -380,7 +380,7 @@ class Stream : public StreamBase } catch(const std::exception&) { - init.completion_handler(Botan::TLS::convertException(), 0); + init.completion_handler(Botan::TLS::convertException(), std::size_t(0)); return init.result.get(); } @@ -408,7 +408,7 @@ class Stream : public StreamBase *this, this->m_core, buffers}; - op({}, 0, false); + op({}, std::size_t(0), false); return init.result.get(); } -- cgit v1.2.3