From f0974cb415bcd6e157c34c4d69c7b2fdcc4d7b49 Mon Sep 17 00:00:00 2001 From: theraven Date: Tue, 19 Apr 2011 14:58:44 +0000 Subject: [PATCH] Cosmetic fix - use the correct union field, not an explicit cast. --- selector_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selector_table.c b/selector_table.c index 70687d1..a0f24ac 100644 --- a/selector_table.c +++ b/selector_table.c @@ -61,7 +61,7 @@ static const char *sel_getNameNonUnique(SEL sel) if (isSelRegistered(sel)) { struct sel_type_list * list = - SparseArrayLookup(selector_list, (uint32_t)(uintptr_t)sel->name); + SparseArrayLookup(selector_list, sel->index); name = (list == NULL) ? NULL : list->value; } if (NULL == name)