mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
another tweak to avoid a compiler warning ... let the compiler know that the
hour cannot exceed 23
This commit is contained in:
parent
b128196e57
commit
cb2998641e
1 changed files with 1 additions and 1 deletions
|
@ -733,7 +733,7 @@ static NSMapTable *absolutes = 0;
|
|||
{
|
||||
char s = (anOffset >= 0) ? '+' : '-';
|
||||
unsigned i = (anOffset >= 0) ? anOffset / 60 : -anOffset / 60;
|
||||
unsigned h = i / 60;
|
||||
unsigned h = (i / 60) % 24;
|
||||
unsigned m = i % 60;
|
||||
char buf[9];
|
||||
|
||||
|
|
Loading…
Reference in a new issue