From 9dbeddeeaee43ac586d4c24e72d475cc4ff22a28 Mon Sep 17 00:00:00 2001 From: theraven Date: Sat, 23 Jul 2011 12:02:04 +0000 Subject: [PATCH] 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 --- Source/Additions/GCArray.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Additions/GCArray.m b/Source/Additions/GCArray.m index e8cf57224..bd8f1d121 100644 --- a/Source/Additions/GCArray.m +++ b/Source/Additions/GCArray.m @@ -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)