mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
word size fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34468 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9cb78b1fa9
commit
b143b3fabf
15 changed files with 63 additions and 36 deletions
|
@ -4696,8 +4696,13 @@ static void indentation(unsigned level, NSMutableString *str)
|
|||
INDENT(indent);
|
||||
if (strchr("cCsSiIlL", *t) != 0)
|
||||
{
|
||||
long i = [self longValue];
|
||||
int64_t i = [self longLongValue];
|
||||
|
||||
if ((i & 0xffffffff) != i)
|
||||
{
|
||||
[NSException raise: NSInternalInconsistencyException
|
||||
format: @"Can't encode %"PRId64" as i4"];
|
||||
}
|
||||
if ((i == 0 || i == 1) && (*t == 'c' || *t == 'C'))
|
||||
{
|
||||
if (i == 0)
|
||||
|
@ -4711,7 +4716,7 @@ static void indentation(unsigned level, NSMutableString *str)
|
|||
}
|
||||
else
|
||||
{
|
||||
[str appendFormat: @"<i4>%ld</i4>", i];
|
||||
[str appendFormat: @"<i4>%"PRId32"</i4>", (int32_t)i];
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue