@@ -906,12 +906,16 @@ objc_unregister_class(cls); /* * The table might have been resized, so go back to the * start again. + * + * Due to the i++ in the for loop, we need to set it to + * UINT_FAST32_MAX so that it will get increased at the + * end of the loop and thus become 0. */ - i = 0; + i = UINT_FAST32_MAX; } } assert(classes_cnt == 0);