64-bit safety

Replaced instances of int with NSInteger