diff options
author | Pavel Tvrdik <pawel.tvrdik@gmail.cz> | 2014-12-03 10:32:26 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2015-02-21 19:38:44 +0100 |
commit | 7d37bf79de190c89f704bfbf0a753f328d995d5a (patch) | |
tree | 689a86b564c9acc620b238697af4d88b44995938 /filter | |
parent | e598853e681d23dd7820627eeed96bf53197eae5 (diff) |
Remove a comparison of unsigned expression < 0
Diffstat (limited to 'filter')
-rw-r--r-- | filter/filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/filter.c b/filter/filter.c index 63c2cd86..a4f12330 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -1016,7 +1016,7 @@ interpret(struct f_inst *what) ONEARG; if (v1.type != T_INT) runtime( "Can't set preference to non-integer" ); - if ((v1.val.i < 0) || (v1.val.i > 0xFFFF)) + if (v1.val.i > 0xFFFF) runtime( "Setting preference value out of bounds" ); f_rte_cow(); (*f_rte)->pref = v1.val.i; |