Commit 606d5bcd authored by Mauro E. Bender's avatar Mauro E. Bender

Fix #50 - Fix precision bug on iPad 32 bits

parent 61f1bed0
......@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = "AMLChat"
s.version = "0.1.1"
s.version = "0.1.2"
s.summary = "A chat implementation for iOS and OSX."
# This description is used to generate tags and improve search results.
......
......@@ -258,10 +258,10 @@
}
+ (NSNumber *)correctStartDateTimetokenForRequest:(NSNumber *)startDateTimetoken {
if(!startDateTimetoken) return nil;
double timetokenDouble = [startDateTimetoken doubleValue] - 10;
return [NSNumber numberWithDouble:(timetokenDouble > 0 ? timetokenDouble : 0)];
if(!startDateTimetoken) return nil;
long long timetokenLongLong = [startDateTimetoken longLongValue] - 10;
return [NSNumber numberWithLongLong:(timetokenLongLong > 0 ? timetokenLongLong : 0)];
}
@end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment