mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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
This commit is contained in:
parent
8159843679
commit
ebd05f162d
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue