aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2017-08-02 11:47:23 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 09:27:01 -0400
commit9a20a75e132e26f6c49971f9818c6fad053875f2 (patch)
treef89396447aadac735f8e2cbc1a86b84a6592b3ef
parentfc6c1114fd6a5b6b643d49195d738b2bddb08153 (diff)
ir-ctl: "ir-ctl -S rc6_mce:0x800f0410" does not work on 32-bit
0x800f0410 does not fit in 32-bit signed long. Signed-off-by: Sean Young <sean@mess.org>
-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 3d66063a..562a05da 100644
--- a/utils/ir-ctl/ir-ctl.c
+++ b/utils/ir-ctl/ir-ctl.c
@@ -152,7 +152,7 @@ static int strtoint(const char *p, const char *unit)
static bool strtoscancode(const char *p, unsigned *ret)
{
char *end;
- long arg = strtol(p, &end, 0);
+ long long arg = strtoll(p, &end, 0);
if (end == NULL || end[0] != 0)
return false;

Privacy Policy