diff --git a/Source/NSCalendarDate.m b/Source/NSCalendarDate.m index 9f7978871..356816b61 100644 --- a/Source/NSCalendarDate.m +++ b/Source/NSCalendarDate.m @@ -1712,7 +1712,7 @@ static inline int getDigits(const char *from, char *to, int limit, BOOL *error) d = dayOfCommonEra(when); d -= GREGORIAN_REFERENCE; d *= 86400; - a = abs(d - (_seconds_since_ref + offset(_time_zone, self))); + a = fabs(d - (_seconds_since_ref + offset(_time_zone, self))); a = a / 3600; h = (NSInteger)a; @@ -1737,7 +1737,7 @@ static inline int getDigits(const char *from, char *to, int limit, BOOL *error) d = dayOfCommonEra(when); d -= GREGORIAN_REFERENCE; d *= 86400; - a = abs(d - (_seconds_since_ref + offset(_time_zone, self))); + a = fabs(d - (_seconds_since_ref + offset(_time_zone, self))); b = a / 3600; h = (NSInteger)b; h = h * 3600; @@ -1775,7 +1775,7 @@ static inline int getDigits(const char *from, char *to, int limit, BOOL *error) d = dayOfCommonEra(when); d -= GREGORIAN_REFERENCE; d *= 86400; - a = abs(d - (_seconds_since_ref + offset(_time_zone, self))); + a = fabs(d - (_seconds_since_ref + offset(_time_zone, self))); b = a / 3600; h = (NSInteger)b; h = h * 3600; diff --git a/Tools/AGSOutput.m b/Tools/AGSOutput.m index ca2d41646..5627baafd 100644 --- a/Tools/AGSOutput.m +++ b/Tools/AGSOutput.m @@ -2409,7 +2409,7 @@ static BOOL snuggleStart(NSString *t) else if (end.location <= start.location) { NSLog(@"End marker comes before start marker in %@ document", kind); - return NO; + return nil; } /*