diff options
author | Keith Packard <keithp@keithp.com> | 2013-12-20 22:44:20 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-12-20 22:44:20 -0800 |
commit | 316d898715746a379068ac8511692bdb9da14b39 (patch) | |
tree | 727ae4365407f67f90c03ffad1b9fbe992aaa470 /src | |
parent | 5c9172ba5681ff93d63c9c263a453d0025170045 (diff) |
altos: unsigned value in ao_pyro_set checked for negative value
No sense checking unsigned values for less than zero.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ao_pyro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ao_pyro.c b/src/core/ao_pyro.c index a260aa99..e59f5bc4 100644 --- a/src/core/ao_pyro.c +++ b/src/core/ao_pyro.c @@ -436,7 +436,7 @@ ao_pyro_set(void) if (ao_cmd_status != ao_cmd_success) return; p = ao_cmd_lex_i; - if (p < 0 || AO_PYRO_NUM <= p) { + if (AO_PYRO_NUM <= p) { printf ("invalid pyro channel %d\n", p); return; } |