Use signed, not unsigned, int when holding a value that may be negative.