🚨 Fix a handful of warnings from Clang

This commit is contained in:
Anders Jenbo 2021-03-14 04:47:49 +01:00
commit cb1016a6d9
2 changed files with 10 additions and 10 deletions

View file

@ -75,7 +75,7 @@ static BYTE *CaptureEnc(BYTE *src, BYTE *dst, int width)
do {
BYTE rlePixel = *src;
*src++;
src++;
rleLength = 1;
width--;
@ -93,11 +93,11 @@ static BYTE *CaptureEnc(BYTE *src, BYTE *dst, int width)
if (rleLength > 1 || rlePixel > 0xBF) {
*dst = rleLength | 0xC0;
*dst++;
dst++;
}
*dst = rlePixel;
*dst++;
dst++;
} while (width);
return dst;