mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +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;
|
ONEARG;
|
||||||
if (v1.type != T_INT)
|
if (v1.type != T_INT)
|
||||||
runtime( "Can't set preference to non-integer" );
|
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" );
|
runtime( "Setting preference value out of bounds" );
|
||||||
f_rte_cow();
|
f_rte_cow();
|
||||||
(*f_rte)->pref = v1.val.i;
|
(*f_rte)->pref = v1.val.i;
|
||||||
|
Loading…
Reference in New Issue
Block a user