mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
(behavior_class_add_methods): 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@1723 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
88946fee14
commit
6c3c3d44ee
1 changed files with 2 additions and 2 deletions
|
@ -180,8 +180,8 @@ behavior_class_add_methods (Class class,
|
|||
/* xxx This is a little wasteful of memory, since not necessarily
|
||||
all methods will go in here. */
|
||||
new_list = (MethodList_t)
|
||||
(*objc_malloc)
|
||||
(sizeof(MethodList) + sizeof(struct objc_method[counter+1]));
|
||||
objc_malloc (sizeof(MethodList) +
|
||||
sizeof(struct objc_method[counter+1]));
|
||||
new_list->method_count = 0;
|
||||
|
||||
while (counter >= 0)
|
||||
|
|
Loading…
Reference in a new issue