mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-16 18:56:54 +02:00
Fixed warnings on MSVC.
This commit is contained in:
@@ -156,7 +156,7 @@ public:
|
||||
while(true) {
|
||||
pac.reserve_buffer(32*1024);
|
||||
|
||||
size_t len = input.readsome(pac.buffer(), pac.buffer_capacity());
|
||||
size_t len = static_cast<size_t>(input.readsome(pac.buffer(), pac.buffer_capacity()));
|
||||
|
||||
if(len == 0) {
|
||||
return;
|
||||
@@ -226,7 +226,7 @@ TEST(streaming, basic_compat)
|
||||
while(count < 3) {
|
||||
pac.reserve_buffer(32*1024);
|
||||
|
||||
size_t len = input.readsome(pac.buffer(), pac.buffer_capacity());
|
||||
size_t len = static_cast<size_t>(input.readsome(pac.buffer(), pac.buffer_capacity()));
|
||||
pac.buffer_consumed(len);
|
||||
|
||||
while(pac.execute()) {
|
||||
@@ -262,7 +262,7 @@ public:
|
||||
while(true) {
|
||||
pac.reserve_buffer(32*1024);
|
||||
|
||||
size_t len = input.readsome(pac.buffer(), pac.buffer_capacity());
|
||||
size_t len = static_cast<size_t>(input.readsome(pac.buffer(), pac.buffer_capacity()));
|
||||
|
||||
if(len == 0) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user