([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:
Andrew McCallum 1996-09-07 20:00:12 +00:00
parent f3c5d64159
commit 4e9fd4a563

View file

@ -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];
}