I see NSInteger is used quite often and the typedef for it on the iPhone is a long, so technically I could use it when I am expect int(64) values. But should I be more explicit and use something like int64_t or long directly? What would be the downside of just using long?
I see NSInteger is used quite often and the typedef for it on the
Share
IIRC,
longon the iPhone/ARM is 32 bits. If you want a guaranteed 64-bit integer, you should (indeed) useint64_t.