Fixed usage of properties linked list.

main
Frederik Seiffert 6 years ago committed by David Chisnall
parent b1964451e1
commit 7166a41999

@ -302,7 +302,7 @@ objc_property_t* class_copyPropertyList(Class cls, unsigned int *outCount)
unsigned int out = 0;
for (struct objc_property_list *l=properties ; NULL!=l ; l=l->next)
{
for (int i=0 ; i<properties->count ; i++)
for (int i=0 ; i<l->count ; i++)
{
list[out++] = property_at_index(l, i);
}

@ -421,7 +421,7 @@ objc_property_t *protocol_copyPropertyList2(Protocol *p, unsigned int *outCount,
unsigned int count = 0;
for (struct objc_property_list *l=properties ; l!=NULL ; l=l->next)
{
count += properties->count;
count += l->count;
}
if (0 == count)
{

Loading…
Cancel
Save