Removed compiler warning about comparing signed/unsigned ints.