mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
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:
parent
c111c27363
commit
68a572f6ea
2 changed files with 19 additions and 12 deletions
|
@ -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>
|
2013-09-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSUserDefaults.m: Update cache when we syunchronise a new
|
* Source/NSUserDefaults.m: Update cache when we syunchronise a new
|
||||||
|
|
|
@ -680,20 +680,20 @@ static unsigned encodingVersion;
|
||||||
switch (size)
|
switch (size)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
max = 0x80;
|
max = INT8_MAX;
|
||||||
min = 0x7f;
|
min = INT8_MIN;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
max = 0x8000;
|
max = INT16_MAX;
|
||||||
min = 0x7fff;
|
min = INT16_MAX;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
max = 0x80000000;
|
max = INT32_MAX;
|
||||||
min = 0x7fffffff;
|
min = INT32_MIN;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
max = 0x8000000000000000;
|
max = INT64_MAX;
|
||||||
min = 0x7fffffffffffffff;
|
min = INT64_MIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
|
@ -758,16 +758,16 @@ static unsigned encodingVersion;
|
||||||
switch (size)
|
switch (size)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
max = 0xff;
|
max = UINT8_MAX;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
max = 0xffff;
|
max = UINT16_MAX;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
max = 0xffffffff;
|
max = UINT32_MAX;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
max = 0xffffffffffffffff;
|
max = UINT64_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue