Integers should be passed as pointers when a function modifies them (to make it clear that they get modified).