Fixed warnings on MSVC.

This commit is contained in:
Takatoshi Kondo
2015-08-12 12:51:12 +09:00
parent 4501551267
commit e50cc5d79f
5 changed files with 18 additions and 8 deletions

View File

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