From 123a23fad59d894e01d85a255cd29ff6db2319e4 Mon Sep 17 00:00:00 2001 From: Alexei Svitkine Date: Wed, 9 Aug 2017 00:14:05 -0400 Subject: [PATCH] fix sequence error compiler warning --- BasiliskII/src/pict.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BasiliskII/src/pict.c b/BasiliskII/src/pict.c index 715c8feb..76633934 100644 --- a/BasiliskII/src/pict.c +++ b/BasiliskII/src/pict.c @@ -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++; }