mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Use unsigned integers to suppress spurious compiler warning.
This commit is contained in:
parent
d5db493e18
commit
bc72e05f93
1 changed files with 4 additions and 4 deletions
|
@ -732,12 +732,12 @@ static NSMapTable *absolutes = 0;
|
|||
if (anOffset % 60 == 0)
|
||||
{
|
||||
char s = (anOffset >= 0) ? '+' : '-';
|
||||
int i = (anOffset >= 0) ? anOffset / 60 : -anOffset / 60;
|
||||
int h = i / 60;
|
||||
int m = i % 60;
|
||||
unsigned i = (anOffset >= 0) ? anOffset / 60 : -anOffset / 60;
|
||||
unsigned h = i / 60;
|
||||
unsigned m = i % 60;
|
||||
char buf[9];
|
||||
|
||||
snprintf(buf, sizeof(buf), "GMT%c%02d%02d", s, h, m);
|
||||
snprintf(buf, sizeof(buf), "GMT%c%02u%02u", s, h, m);
|
||||
name = [[NSString alloc] initWithUTF8String: buf];
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue