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:
Richard Frith-Macdonald 2006-01-11 08:37:16 +00:00
parent fd8bfa11d5
commit 15a2e17e48
19 changed files with 283 additions and 285 deletions

View file

@ -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)
{