shithub: picker

Download patch

ref: ffd4488bbff08ce28e74f8e453dfa9c76c955124
parent: 5ab700f7ee2b791c25573c0c3d82431135a9e0e7
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sat Mar 14 17:22:25 EDT 2020

no need to compare to 0xffffffff anymore

--- a/picker.c
+++ b/picker.c
@@ -292,7 +292,7 @@
 			fprint(2, "wrong number of components: '%s'\n", argv[i]);
 			usage();
 		}
-		if ((v = strtoll(argv[i], &s, 16)) == 0 && (s == argv[i] || *s || v > 0xffffffff || v < 0)) {
+		if ((v = strtoll(argv[i], &s, 16)) == 0 && (s == argv[i] || *s || v < 0)) {
 			fprint(2, "invalid color: '%s'\n", argv[i]);
 			usage();
 		}