Changes for 64bit clean printf format strings.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36810 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2013-07-03 06:46:41 +00:00
parent 8082fb58c1
commit 022d588467
32 changed files with 223 additions and 168 deletions

View file

@ -288,7 +288,7 @@ static NSUInteger posForIndex(GSIArray array, NSUInteger index)
[super description]];
}
m = [NSMutableString stringWithFormat:
@"%@[number of indexes: %u (in %u ranges), indexes:",
@"%@[number of indexes: %"PRIuPTR" (in %"PRIuPTR" ranges), indexes:",
[super description], [self count], c];
for (i = 0; i < c; i++)
{
@ -296,11 +296,12 @@ static NSUInteger posForIndex(GSIArray array, NSUInteger index)
if (r.length > 1)
{
[m appendFormat: @" (%u-%u)", r.location, NSMaxRange(r) - 1];
[m appendFormat: @" (%"PRIuPTR"-%"PRIuPTR")",
r.location, NSMaxRange(r) - 1];
}
else
{
[m appendFormat: @" %u", r.location];
[m appendFormat: @" %"PRIuPTR, r.location];
}
}
[m appendString: @"]"];