Switch usage of int to NSInteger for arm64 compatibility.

This change silences Xcode warnings when build settings include arm64.