0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

Remove a comparison of unsigned expression < 0

This commit is contained in:
Pavel Tvrdik 2014-12-03 10:32:26 +01:00 committed by Ondrej Zajicek
parent e598853e68
commit 7d37bf79de

View File

@ -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;