Make ints 32-bits.

The intrinsic int type on the APM is probably not 32-bits. Change
the data types to make sure nothing is lost in the implicit
conversion.