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); }