fix sequence error compiler warning

This commit is contained in:
Alexei Svitkine 2017-08-09 00:14:05 -04:00
parent bc7cd78467
commit 123a23fad5

View File

@ -101,7 +101,8 @@ static ssize_t CompressUsingRLE(uint8_t *row, uint16_t uncmpLength, uint8_t *out
uint8_t literals = 0;
uint8_t i;
while (cursor + literals + 1 < uncmpLength && literals < 127 && nextByte != (nextByte = row[cursor + literals + 1])) {
while (cursor + literals + 1 < uncmpLength && literals < 127 && nextByte != row[cursor + literals + 1]) {
nextByte = row[cursor + literals + 1];
literals++;
}