diff options
Diffstat (limited to 'util/scan/diseqc.c')
-rw-r--r-- | util/scan/diseqc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/scan/diseqc.c b/util/scan/diseqc.c index c763261..a337e0a 100644 --- a/util/scan/diseqc.c +++ b/util/scan/diseqc.c @@ -93,7 +93,7 @@ int setup_switch (int frontend_fd, int switch_pos, int voltage_18, int hiband) verbose("DiSEqC: switch pos %i, %sV, %sband (index %d)\n", switch_pos, voltage_18 ? "18" : "13", hiband ? "hi" : "lo", i); - if (i < 0 || i >= sizeof(switch_cmds)/sizeof(struct diseqc_cmd)) + if (i < 0 || i >= (int) (sizeof(switch_cmds)/sizeof(struct diseqc_cmd))) return -EINVAL; cmd[0] = &switch_cmds[i]; |