mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
e158dc8d68
commit
7e1b80bb32
6 changed files with 16 additions and 16 deletions
|
@ -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];
|
||||
|
||||
|
|
|
@ -1463,13 +1463,13 @@ compare(id elem1, id elem2, void* context)
|
|||
|
||||
if ([key isEqualToString: @"@count"] == YES)
|
||||
{
|
||||
result = [NSNumber numberWithUnsignedInt: [self count]];
|
||||
result = [NSNumber numberWithUnsignedInteger: [self count]];
|
||||
}
|
||||
else if ([key isEqualToString: @"count"] == YES)
|
||||
{
|
||||
GSOnceMLog(
|
||||
@"[NSArray-valueForKey:] called wth 'count' is deprecated .. use '@count'");
|
||||
result = [NSNumber numberWithUnsignedInt: [self count]];
|
||||
result = [NSNumber numberWithUnsignedInteger: [self count]];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1517,7 +1517,7 @@ compare(id elem1, id elem2, void* context)
|
|||
{
|
||||
if ([path isEqualToString: @"@count"] == YES)
|
||||
{
|
||||
result = [NSNumber numberWithUnsignedInt: [self count]];
|
||||
result = [NSNumber numberWithUnsignedInteger: [self count]];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1532,7 +1532,7 @@ compare(id elem1, id elem2, void* context)
|
|||
|
||||
if ([op isEqualToString: @"@count"] == YES)
|
||||
{
|
||||
result = [NSNumber numberWithUnsignedInt: count];
|
||||
result = [NSNumber numberWithUnsignedInteger: count];
|
||||
}
|
||||
else if ([op isEqualToString: @"@avg"] == YES)
|
||||
{
|
||||
|
|
|
@ -752,12 +752,12 @@ static NSDictionary *makeReference(unsigned ref)
|
|||
return;
|
||||
|
||||
case _C_INT:
|
||||
o = [NSNumber numberWithInt: *(NSInteger*)address];
|
||||
o = [NSNumber numberWithInt: *(int*)address];
|
||||
[_enc setObject: o forKey: aKey];
|
||||
return;
|
||||
|
||||
case _C_UINT:
|
||||
o = [NSNumber numberWithUnsignedInt: *(NSUInteger*)address];
|
||||
o = [NSNumber numberWithUnsignedInt: *(unsigned int*)address];
|
||||
[_enc setObject: o forKey: aKey];
|
||||
return;
|
||||
|
||||
|
|
|
@ -229,8 +229,8 @@ static Class concreteClass = Nil;
|
|||
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:
|
||||
|
|
|
@ -213,7 +213,7 @@ extern void GSPropertyListMake(id,NSDictionary*,BOOL,BOOL,unsigned,id*);
|
|||
case 'i':
|
||||
ptr++;
|
||||
[arr addObject: [NSNumber numberWithInt:
|
||||
va_arg(args, NSInteger)]];
|
||||
va_arg(args, int)]];
|
||||
break;
|
||||
|
||||
case 'o':
|
||||
|
@ -224,7 +224,7 @@ extern void GSPropertyListMake(id,NSDictionary*,BOOL,BOOL,unsigned,id*);
|
|||
case 'X':
|
||||
ptr++;
|
||||
[arr addObject: [NSNumber numberWithUnsignedInt:
|
||||
va_arg(args, NSUInteger)]];
|
||||
va_arg(args, unsigned)]];
|
||||
break;
|
||||
|
||||
case 'e':
|
||||
|
|
|
@ -656,7 +656,7 @@ static Class NSMutableSet_concrete_class;
|
|||
{
|
||||
if ([path isEqualToString: @"@count"] == YES)
|
||||
{
|
||||
result = [NSNumber numberWithUnsignedInt: [self count]];
|
||||
result = [NSNumber numberWithUnsignedInteger: [self count]];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -671,7 +671,7 @@ static Class NSMutableSet_concrete_class;
|
|||
|
||||
if ([op isEqualToString: @"@count"] == YES)
|
||||
{
|
||||
result = [NSNumber numberWithUnsignedInt: count];
|
||||
result = [NSNumber numberWithUnsignedInteger: count];
|
||||
}
|
||||
else if ([op isEqualToString: @"@avg"] == YES)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue