Switching usage of int to NSInteger for arm64 compatibility.