Correct signed / unsigned comparisons.