Simple math doing my head in - when is an int treated like an int?

Mostly AVR. it's one of the few platforms where an int is only 16 bits.