mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
Remove a comparison of unsigned expression < 0
This commit is contained in:
parent
e598853e68
commit
7d37bf79de
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user