From 2439ec55c19574f5450f7e29f34a45477de918f6 Mon Sep 17 00:00:00 2001 From: arvidn Date: Fri, 17 Jul 2015 22:01:45 -0400 Subject: [PATCH] clean up in utp_stream.hpp --- include/libtorrent/utp_stream.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libtorrent/utp_stream.hpp b/include/libtorrent/utp_stream.hpp index a6a365414..2a6f7ced6 100644 --- a/include/libtorrent/utp_stream.hpp +++ b/include/libtorrent/utp_stream.hpp @@ -450,12 +450,12 @@ public: if (buffer_size(*i) == 0) continue; using boost::asio::buffer_cast; using boost::asio::buffer_size; - add_write_buffer((void*)buffer_cast(*i), buffer_size(*i)); + add_write_buffer(buffer_cast(*i), buffer_size(*i)); bytes_added += buffer_size(*i); } if (bytes_added == 0) { - // if we're reading 0 bytes, post handler immediately + // if we're writing 0 bytes, post handler immediately // asio's SSL layer depends on this behavior m_io_service.post(boost::bind(handler, error_code(), 0)); return;