@@ -81,11 +81,12 @@ dtable = objc_sparsearray_new(); for (ml = cls->methodlist; ml != NULL; ml = ml->next) for (i = 0; i < ml->count; i++) objc_sparsearray_set(dtable, - ml->methods[i].sel.uid, ml->methods[i].imp); + (uint32_t)ml->methods[i].sel.uid, + ml->methods[i].imp); if ((cats = objc_categories_for_class(cls)) != NULL) { for (i = 0; cats[i] != NULL; i++) { unsigned int j;