From 6136f851753350f889af769606b4c89aa29b67f9 Mon Sep 17 00:00:00 2001 From: mccallum Date: Sat, 7 Sep 1996 20:03:33 +0000 Subject: [PATCH] (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 --- Source/behavior.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/behavior.m b/Source/behavior.m index 1602a76f9..49a1f0016 100644 --- a/Source/behavior.m +++ b/Source/behavior.m @@ -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)