fixed clang compilation

This commit is contained in:
jeefo 2016-09-11 21:10:41 +03:00
commit c77181e858
2 changed files with 11 additions and 7 deletions

View file

@ -300,15 +300,24 @@ public:
{
if (((flags >>= 1) & 256) == 0)
{
if ((bit = static_cast <uint8> (fp.GetChar ())) == EOF)
int read = fp.GetChar ();
if (read == EOF)
break;
bit = static_cast <uint8> (read);
flags = bit | 0xff00;
}
if (flags & 1)
{
if ((bit = static_cast <uint8> (fp.GetChar ())) == EOF)
int read = fp.GetChar ();
if (read == EOF)
break;
bit = static_cast <uint8> (read);
buffer[bufferPtr++] = bit;
if (bufferPtr > bufferSize)