From 6cdbe93836555357db819eeef5ea767e933e61f6 Mon Sep 17 00:00:00 2001 From: rfm Date: Sat, 2 May 2015 16:44:02 +0000 Subject: [PATCH] fiF errors pointed out by Barnaby Jones git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38472 72102866-910b-0410-8b05-ffd578937521 --- Source/NSCalendarDate.m | 6 +++--- Tools/AGSOutput.m | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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; } /*