mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41: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 -= 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue