mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +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
4322d02416
commit
6cdbe93836
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 = dayOfCommonEra(when);
|
||||||
d -= GREGORIAN_REFERENCE;
|
d -= GREGORIAN_REFERENCE;
|
||||||
d *= 86400;
|
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;
|
a = a / 3600;
|
||||||
h = (NSInteger)a;
|
h = (NSInteger)a;
|
||||||
|
|
||||||
|
@ -1737,7 +1737,7 @@ static inline int getDigits(const char *from, char *to, int limit, BOOL *error)
|
||||||
d = dayOfCommonEra(when);
|
d = dayOfCommonEra(when);
|
||||||
d -= GREGORIAN_REFERENCE;
|
d -= GREGORIAN_REFERENCE;
|
||||||
d *= 86400;
|
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;
|
b = a / 3600;
|
||||||
h = (NSInteger)b;
|
h = (NSInteger)b;
|
||||||
h = h * 3600;
|
h = h * 3600;
|
||||||
|
@ -1775,7 +1775,7 @@ static inline int getDigits(const char *from, char *to, int limit, BOOL *error)
|
||||||
d = dayOfCommonEra(when);
|
d = dayOfCommonEra(when);
|
||||||
d -= GREGORIAN_REFERENCE;
|
d -= GREGORIAN_REFERENCE;
|
||||||
d *= 86400;
|
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;
|
b = a / 3600;
|
||||||
h = (NSInteger)b;
|
h = (NSInteger)b;
|
||||||
h = h * 3600;
|
h = h * 3600;
|
||||||
|
|
|
@ -2409,7 +2409,7 @@ static BOOL snuggleStart(NSString *t)
|
||||||
else if (end.location <= start.location)
|
else if (end.location <= start.location)
|
||||||
{
|
{
|
||||||
NSLog(@"End marker comes before start marker in %@ document", kind);
|
NSLog(@"End marker comes before start marker in %@ document", kind);
|
||||||
return NO;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue