use constant values from stdint.h

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37054 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2013-09-09 08:13:20 +00:00
parent d7c607cb1d
commit 49a2467fa3
2 changed files with 19 additions and 12 deletions

View file

@ -1,3 +1,10 @@
2013-09-09 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Additions/GSMime.m: Add comments and a further fallback
mechanism for parsing HTTP when the default encoding is set.
* Source/NSUnarchiver.m: Fix integer size values to use constants
from stdint.h
2013-09-06 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSUserDefaults.m: Update cache when we syunchronise a new

View file

@ -680,20 +680,20 @@ static unsigned encodingVersion;
switch (size)
{
case 1:
max = 0x80;
min = 0x7f;
max = INT8_MAX;
min = INT8_MIN;
break;
case 2:
max = 0x8000;
min = 0x7fff;
max = INT16_MAX;
min = INT16_MAX;
break;
case 4:
max = 0x80000000;
min = 0x7fffffff;
max = INT32_MAX;
min = INT32_MIN;
break;
default:
max = 0x8000000000000000;
min = 0x7fffffffffffffff;
max = INT64_MAX;
min = INT64_MIN;
}
for (i = 0; i < count; i++)
@ -758,16 +758,16 @@ static unsigned encodingVersion;
switch (size)
{
case 1:
max = 0xff;
max = UINT8_MAX;
break;
case 2:
max = 0xffff;
max = UINT16_MAX;
break;
case 4:
max = 0xffffffff;
max = UINT32_MAX;
break;
default:
max = 0xffffffffffffffff;
max = UINT64_MAX;
}
for (i = 0; i < count; i++)