Convert byte to positive integer before making comparison. Also reviewed by Florian Weimer <fweimer@redhat.com>. Reviewed-by: wetmore
Reviewed-by: weijun