Skip to content

Commit dc8c253

Browse files
committed
fix msvc warning
1 parent 9c77a0f commit dc8c253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/cpp11/socket_stream_example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ struct ref_buffer {
115115
bool produce( std::stringstream & ss, char* buff, std::size_t& size)
116116
{
117117
ss.read(buff, BUFFERING_SIZE_MAX);
118-
size = ss.gcount();
118+
size = static_cast<std::size_t>(ss.gcount());
119119
return (size > 0);
120120
}
121121

0 commit comments

Comments
 (0)