Silence some -Wsign-compare warnings.

This shouldn't be necessary, since the usages are compared with unsigned variables.