Commit 7d37bf79 authored by Pavel Tvrdik's avatar Pavel Tvrdik Committed by Ondřej Zajíček

Remove a comparison of unsigned expression < 0

parent e598853e
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment