summaryrefslogtreecommitdiff
path: root/irmp
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2020-02-22 06:32:40 +0100
committerGerhard Sittig <gerhard.sittig@gmx.net>2020-07-18 15:25:29 +0200
commit497d973027e3a9691b76f660c85400e4fe265773 (patch)
tree24a752da9a38d051f866c2facc53f0bcf156af66 /irmp
parent6a419ada57b7e219b9aca56253be664cca51865d (diff)
downloadlibsigrokdecode-497d973027e3a9691b76f660c85400e4fe265773.tar.gz
libsigrokdecode-497d973027e3a9691b76f660c85400e4fe265773.zip
irmp: silence signedness compiler warning in IR command comparison
Assume that IR command codes can get represented by a C language 'int' data type. The other value in the comparison is another 'int' anyway.
Diffstat (limited to 'irmp')
-rw-r--r--irmp/irmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/irmp/irmp.c b/irmp/irmp.c
index 25f8def..f2e7f5a 100644
--- a/irmp/irmp.c
+++ b/irmp/irmp.c
@@ -5870,7 +5870,7 @@ next_tick (void)
{
if (irmp_data.protocol != expected_protocol ||
irmp_data.address != expected_address ||
- irmp_data.command != expected_command)
+ (int)irmp_data.command != expected_command)
{
printf ("\nerror 7: expected values differ: p=%2d (%s), a=0x%04x, c=0x%04x\n",
expected_protocol, irmp_protocol_names[expected_protocol], expected_address, expected_command);