Fixed warning for 64-bit NSInteger.
Replaced all instances of int with NSInteger to correctly support 64-bit.
Merge pull request #77 from rwpcpe/master

int -> NSInteger