shithub: rgbds

Download patch

ref: b60853ea2184cef66faed4505838e6fa163e4fe0
parent: b936ca27abf52b33fc4eba0c2d20692ce374a868
author: ISSOtm <[email protected]>
date: Sun Apr 25 07:05:34 EDT 2021

Fix RGBFIX option parsing on platforms with unsigned char

Such as Termux, once again.

--- a/src/fix/main.c
+++ b/src/fix/main.c
@@ -967,7 +967,7 @@
 int main(int argc, char *argv[])
 {
 	nbErrors = 0;
-	char ch;
+	int ch;
 
 	while ((ch = musl_getopt_long_only(argc, argv, optstring, longopts, NULL)) != -1) {
 		switch (ch) {