([NSMutableData -initWithCapacity:]): In accordance with Objective C

runtime change, use objc_malloc as a function, not a function pointer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1720 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-09-07 20:00:37 +00:00
parent a5c1633e12
commit 610b68f9df
2 changed files with 2 additions and 2 deletions

View file

@ -511,7 +511,7 @@ static Class NSMutableData_concrete_class;
- (id) initWithCapacity: (unsigned int)capacity - (id) initWithCapacity: (unsigned int)capacity
{ {
return [self initWithBytesNoCopy:(*objc_malloc)(capacity) return [self initWithBytesNoCopy: objc_malloc (capacity)
length:capacity]; length:capacity];
} }

View file

@ -41,7 +41,7 @@
- (id) initWithCapacity: (unsigned int)capacity - (id) initWithCapacity: (unsigned int)capacity
{ {
return [self initWithBytesNoCopy:(*objc_malloc)(capacity) return [self initWithBytesNoCopy: objc_malloc (capacity)
length:capacity]; length:capacity];
} }