Fix comparison of unsigned ints