Use unsigned ints in at least one suitable place.