mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-14 15:05:37 +02:00
fix msvc warning
This commit is contained in:
@@ -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<std::size_t>(ss.gcount());
|
||||
return (size > 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user