remove unnecessary signed comparisons with unsigned type