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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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)
{
char longest = 1;
char prev = 255;
unsigned char prev = 255;
char count = 0;
char index = 0;
char lindex = 0;