From dc8c2535775b510bd4a9325bf1e43b3cd9b49583 Mon Sep 17 00:00:00 2001 From: pmalhaire Date: Wed, 30 Nov 2016 10:30:26 +0100 Subject: [PATCH] fix msvc warning --- example/cpp11/socket_stream_example.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/cpp11/socket_stream_example.cpp b/example/cpp11/socket_stream_example.cpp index b81c43f0..3bb68f77 100644 --- a/example/cpp11/socket_stream_example.cpp +++ b/example/cpp11/socket_stream_example.cpp @@ -115,7 +115,7 @@ struct ref_buffer { bool produce( std::stringstream & ss, char* buff, std::size_t& size) { ss.read(buff, BUFFERING_SIZE_MAX); - size = ss.gcount(); + size = static_cast(ss.gcount()); return (size > 0); }