shithub: rgbds

Download patch

ref: af70d555fc98a23fa15e70b762dfe2c6d15e2878
parent: e07bd92314aa5e4c96b447ad43dd82191e0f6996
author: ISSOtm <eldredhabert0@gmail.com>
date: Wed Mar 9 03:40:36 EST 2022

Remove signed check on unsigned variable

--- a/src/asm/main.c
+++ b/src/asm/main.c
@@ -241,7 +241,7 @@
 			if (musl_optarg[0] == '\0' || *ep != '\0')
 				errx("Invalid argument for option 'p'");
 
-			if (fill < 0 || fill > 0xFF)
+			if (fill > 0xFF)
 				errx("Argument for option 'p' must be between 0 and 0xFF");
 
 			opt_P(fill);