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

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