Fix unsigned vs. signed comparison warnings.