From 1f9594560ed0392bd0420dc79e1f586cc8c63218 Mon Sep 17 00:00:00 2001 From: Janne Johansson Date: Wed, 19 Apr 2023 09:15:03 +0200 Subject: [PATCH] Update lynxsprite.c Remove compiler warning about (signed) char wrapping around to -1 when set to 255. --- src/sp65/lynxsprite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sp65/lynxsprite.c b/src/sp65/lynxsprite.c index 566edacbe..6bd9b03de 100644 --- a/src/sp65/lynxsprite.c +++ b/src/sp65/lynxsprite.c @@ -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;