Removed compiler warnings on comparison with unsigned ints