mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-06 14:40:43 +00:00
([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:
parent
a5c1633e12
commit
610b68f9df
2 changed files with 2 additions and 2 deletions
|
@ -511,7 +511,7 @@ static Class NSMutableData_concrete_class;
|
|||
|
||||
- (id) initWithCapacity: (unsigned int)capacity
|
||||
{
|
||||
return [self initWithBytesNoCopy:(*objc_malloc)(capacity)
|
||||
return [self initWithBytesNoCopy: objc_malloc (capacity)
|
||||
length:capacity];
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
- (id) initWithCapacity: (unsigned int)capacity
|
||||
{
|
||||
return [self initWithBytesNoCopy:(*objc_malloc)(capacity)
|
||||
return [self initWithBytesNoCopy: objc_malloc (capacity)
|
||||
length:capacity];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue