Update lynxsprite.c

Remove compiler warning about (signed) char wrapping around to -1 when set to 255.
This commit is contained in:
Janne Johansson
2023-04-19 09:15:03 +02:00
committed by GitHub
parent 128b15a71e
commit 1f9594560e

View File

@@ -312,7 +312,7 @@ static void AssembleByte(unsigned bits, char val)
static unsigned char AnalyseNextChunks(signed *newlen, signed len, char data[32], char ColorBits) static unsigned char AnalyseNextChunks(signed *newlen, signed len, char data[32], char ColorBits)
{ {
char longest = 1; char longest = 1;
char prev = 255; unsigned char prev = 255;
char count = 0; char count = 0;
char index = 0; char index = 0;
char lindex = 0; char lindex = 0;