Fix warning about signedness conversion in BinaryReader

Length is expected to be positive
This commit is contained in:
Martchus 2018-03-04 21:06:29 +01:00
parent da5a027ea3
commit cdecc48a1d
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ inline void BinaryReader::read(byte *buffer, std::streamsize length)
*/
inline void BinaryReader::read(std::vector<char> &buffer, std::streamsize length)
{
buffer.resize(length);
buffer.resize(static_cast<std::vector<char>::size_type>(length));
m_stream->read(buffer.data(), length);
}