Add casts when converting from size_t or std::streamsize to int

This commit is contained in:
Martin Storsjö
2015-01-16 10:39:55 +02:00
parent af938a640f
commit 96384bd578
3 changed files with 5 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ class DecodeEncodeTest : public ::testing::TestWithParam<DecodeEncodeFileParam>,
break;
}
}
return buf_.PopFront (static_cast<uint8_t*> (ptr), len);
return (int) buf_.PopFront (static_cast<uint8_t*> (ptr), len);
}
protected: