~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to Source/Additions/GCArray.m

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2012-11-21 13:56:22 UTC
  • mfrom: (8.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20121121135622-1w035dpxneardw8q
Tags: 1.24.0-1ubuntu1
Backport upstream fix for recent libxml2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
    }
146
146
}
147
147
 
148
 
- (id) initWithObjects: (id*)objects count: (NSUInteger)count
 
148
- (id) initWithObjects: (const id[])objects count: (NSUInteger)count
149
149
{
150
150
  _contents = NSZoneMalloc([self zone], count * (sizeof(id) + sizeof(BOOL)));
151
151
  _isGCObject = (BOOL*)&_contents[count];
297
297
  return self;
298
298
}
299
299
 
300
 
- (id) initWithObjects: (id *)objects count: (NSUInteger)count
 
300
- (id) initWithObjects: (const id [])objects count: (NSUInteger)count
301
301
{
302
302
  self = [self initWithCapacity: count];
303
303
  if (self != nil)