Fixing a warning about comparing a signed and unsigned int.