use NSInteger instead of int for 32/64 bit safety
Merge pull request #133 from madsolar8582/fixintegerprimitives

Use NSInteger instead of int for 32/64 bit safety