change int to NSInteger
Merge pull request #2 from comoyo/type-fix

change int to NSInteger