Fix warning about signedness conversion in BinaryReader

Length is expected to be positive
improve/error-messages
Martchus 5 years ago
parent da5a027ea3
commit cdecc48a1d
  1. 2
      io/binaryreader.h

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

Loading…
Cancel
Save