aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/ir-ctl/ir-ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ir-ctl/ir-ctl.c b/utils/ir-ctl/ir-ctl.c
index f19bd053..768daad0 100644
--- a/utils/ir-ctl/ir-ctl.c
+++ b/utils/ir-ctl/ir-ctl.c
@@ -146,7 +146,7 @@ static bool strtoscancode(const char *p, unsigned *ret)
if (end == NULL || end[0] != 0)
return false;
- if (arg <= 0 || arg >= 0xffffffff)
+ if (arg < 0 || arg > 0xffffffff)
return false;
*ret = arg;

Privacy Policy