(__objc_init_protocols): Don't install protocol class pointer twice.

From-SVN: r4450
This commit is contained in:
Richard Stallman 1993-05-14 16:05:19 +00:00
parent 76ace27b1e
commit 0046ffa3f0

View File

@ -243,10 +243,10 @@ __objc_init_protocols (struct objc_protocol_list* protos)
{
if (((size_t)((id)protos->list[i])->class_pointer) == PROTOCOL_VERSION)
((id)protos->list[i])->class_pointer = proto_class;
else
else if (((id)protos->list[i])->class_pointer != proto_class)
{
fprintf (stderr,
"Version %d doesn't protocol version %d\n",
"Version %d doesn't match runtime protocol version %d\n",
((size_t)((id)protos->list[i])->class_pointer),
PROTOCOL_VERSION);
abort ();