mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
([NSGMutableData -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@1719 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f3c5d64159
commit
4e9fd4a563
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@
|
|||
/* Make sure we do this, and not what MemoryStream says. */
|
||||
- (id) initWithCapacity: (unsigned int)capacity
|
||||
{
|
||||
return [self initWithBytesNoCopy:(*objc_malloc)(capacity)
|
||||
return [self initWithBytesNoCopy: objc_malloc (capacity)
|
||||
length:capacity];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue