Use intptr_t instead of NSInteger.