Make cast in binary reader explicit

feature/exec_app
Martchus 6 years ago
parent c4d73b0d7d
commit c4cf107de2
  1. 2
      io/binaryreader.cpp

@ -100,7 +100,7 @@ string BinaryReader::readLengthPrefixedString()
{
static const int maxPrefixLength = 4;
int prefixLength = 1;
byte beg = m_stream->peek();
const byte beg = static_cast<byte>(m_stream->peek());
byte mask = 0x80;
while(prefixLength <= maxPrefixLength && (beg & mask) == 0) {
++prefixLength;

Loading…
Cancel
Save