mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Tidy use of sized datatypes. Check for invalid asumption of interchangability
of int/long in encoder/decoder methods. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22291 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7d11eb6607
commit
bb1ce663a4
19 changed files with 283 additions and 285 deletions
|
@ -336,7 +336,7 @@ static unsigned rootOf(NSString *s, unsigned l)
|
|||
|
||||
|
||||
/* Convert a high-low surrogate pair into Unicode scalar code-point */
|
||||
static inline gsu32
|
||||
static inline uint32_t
|
||||
surrogatePairValue(unichar high, unichar low)
|
||||
{
|
||||
return ((high - (unichar)0xD800) * (unichar)400)
|
||||
|
@ -3285,7 +3285,7 @@ handle_printf_atsign (FILE *stream,
|
|||
unsigned char *buff;
|
||||
unsigned i, j;
|
||||
unichar ch, ch2;
|
||||
gsu32 cp;
|
||||
uint32_t cp;
|
||||
|
||||
buff = (unsigned char *)NSZoneMalloc(NSDefaultMallocZone(), len*3);
|
||||
|
||||
|
@ -3311,10 +3311,10 @@ handle_printf_atsign (FILE *stream,
|
|||
i++;
|
||||
}
|
||||
else
|
||||
cp = (gsu32)ch;
|
||||
cp = (uint32_t)ch;
|
||||
}
|
||||
else
|
||||
cp = (gsu32)ch;
|
||||
cp = (uint32_t)ch;
|
||||
|
||||
if (cp < 0x80)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue