Get rid of absolute value call with unsigned ints