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:
@@ -11,7 +11,7 @@ static void feed_file(msgpack::unpacker& pac, const char* path)
|
||||
if(fin.bad()) {
|
||||
throw std::runtime_error("read failed");
|
||||
}
|
||||
pac.buffer_consumed(fin.gcount());
|
||||
pac.buffer_consumed(static_cast<size_t>(fin.gcount()));
|
||||
if(fin.fail()) {
|
||||
break;
|
||||
}
|
||||
@@ -35,4 +35,3 @@ TEST(cases, format)
|
||||
|
||||
EXPECT_FALSE( pac_compact.next(&result) );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user