Fix a compiler warning about comparing signed with unsigned.