Make cast in binary reader explicit
This commit is contained in:
parent
c4d73b0d7d
commit
c4cf107de2
|
@ -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…
Reference in New Issue