Switch some ints to unsigned (they can only have positive values, this allows