minor fixes for 64bit systems using collection with more than 2^32 items

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38295 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-01-16 15:25:50 +00:00
parent 13e4d77cec
commit 60a0f7ce5b
6 changed files with 16 additions and 16 deletions

View file

@ -84,8 +84,8 @@ static Class GSInlineArrayClass;
NSString *reason;
info = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithUnsignedInt: index], @"Index",
[NSNumber numberWithUnsignedInt: _count], @"Count",
[NSNumber numberWithUnsignedInteger: index], @"Index",
[NSNumber numberWithUnsignedInteger: _count], @"Count",
self, @"Array", nil, nil];
reason = [NSString stringWithFormat:
@ -591,7 +591,7 @@ static Class GSInlineArrayClass;
NSDictionary *info;
info = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithUnsignedInt: index], @"Index",
[NSNumber numberWithUnsignedInteger: index], @"Index",
self, @"Array", nil, nil];
exception = [NSException exceptionWithName: NSInvalidArgumentException
@ -772,7 +772,7 @@ static Class GSInlineArrayClass;
NSDictionary *info;
info = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithUnsignedInt: index], @"Index",
[NSNumber numberWithUnsignedInteger: index], @"Index",
_contents_array[index], @"OldObject",
self, @"Array", nil, nil];