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