Make cast in binary reader explicit

This commit is contained in:
Martchus 2017-02-06 18:24:40 +01:00
parent c4d73b0d7d
commit c4cf107de2
1 changed files with 1 additions and 1 deletions

View File

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