From bd8626e692e5c9343e4b2226ce8841e9e19ae880 Mon Sep 17 00:00:00 2001 From: theraven Date: Thu, 7 Jan 2010 14:11:22 +0000 Subject: [PATCH] Fix warning in last commit. --- runtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime.c b/runtime.c index 20cb302..61c97fa 100644 --- a/runtime.c +++ b/runtime.c @@ -751,7 +751,7 @@ Class objc_allocateClassPair(Class superclass, const char *name, size_t extraByt newClass->class_pointer = metaClass; // Set the superclass pointer to the name. The runtime will fix this when // the class links are resolved. - newClass->super_class = superclass->name; + newClass->super_class = (Class)(superclass->name); newClass->name = strdup(name); newClass->info = _CLS_CLASS | _CLS_RUNTIME | _CLS_NEW_ABI; newClass->dtable = __objc_uninstalled_dtable;