Simplify integer comparisons