Fix warning about mismatched signs in comparison.