ref: 659fc7d347af59eccc12b5113a6a098c90915cb7
parent: f66bb7bc5c2d0d5fe98d98403f513259543fec74
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Sat Jan 16 07:36:28 EST 2021
fix a warning on 386
--- a/picker.c
+++ b/picker.c
@@ -340,8 +340,8 @@
return -1;
}
c->nchan = n == 6 ? 3 : 4;
- if ((v = strtoll(h, &e, 16)) == 0 &&
- (e == h || *e || v < 0 || (n == 6 && v > 0xffffff) || (n == 8 && v > 0xffffffff))) {
+ v = strtoll(h, &e, 16);
+ if (v == 0 && (e == h || *e || v < 0 || (n == 6 && v > 0xffffff) || (n == 8 && v > 0xffffffff))) {
werrstr("color: '%s'", h);
return -1;
}