Missing part of the NSArray update.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33609 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2011-07-23 12:02:04 +00:00
parent 24d2d9bad2
commit 018fab87bd

View file

@ -145,7 +145,7 @@ static Class gcClass = 0;
}
}
- (id) initWithObjects: (id*)objects count: (NSUInteger)count
- (id) initWithObjects: (const id[])objects count: (NSUInteger)count
{
_contents = NSZoneMalloc([self zone], count * (sizeof(id) + sizeof(BOOL)));
_isGCObject = (BOOL*)&_contents[count];
@ -297,7 +297,7 @@ static Class gcClass = 0;
return self;
}
- (id) initWithObjects: (id *)objects count: (NSUInteger)count
- (id) initWithObjects: (const id [])objects count: (NSUInteger)count
{
self = [self initWithCapacity: count];
if (self != nil)