I would like to process unsigned 64-bit unsigned integers on an iPhone through 4s (which of course has a 32-bit ARM processor 6).
When trying to work with 64-bit unsigned integers, for example. Twitter ids, I have the following problem:
NSArray *Ids =[timelineData valueForKeyPath:@"id"];
NSUInteger minId = (NSUInteger) Ids.lastObject;
The array Idscontains the following numbers (= Net identifiers):
491621469123018752,
491621468917477377,
491621465544851456,
491621445655867393
However minIdreturns an invalid value 399999248(instead 491621445655867393)
How can I find the minimum or last object in an array of 64-bit integers on iPhone 4s?
Alexr source
share