Ticket #757: TRAC-757-2.patch
File TRAC-757-2.patch, 1.0 KB (added by cdarroch, 12 years ago) |
---|
-
src/pmc/parrotinterpreter.pmc
old new 90 90 PObj_is_class_TEST(s->vtables[i]->pmc_class)) { 91 91 STRING * const class_name = 92 92 VTABLE_get_string(s, s->vtables[i]->pmc_class); 93 PARROT_ASSERT(VTABLE_exists_keyed_str(d,94 d->class_hash, class_name));95 93 96 VTABLE_delete_keyed_str(d, d->class_hash, class_name); 97 98 if (last_remove == i + 1) { 99 --d->n_vtable_max; 100 last_remove = i; 94 if (VTABLE_exists_keyed_str(d, 95 d->class_hash, class_name)) { 96 VTABLE_delete_keyed_str(d, d->class_hash, class_name); 97 98 if (last_remove == i + 1) { 99 --d->n_vtable_max; 100 last_remove = i; 101 } 101 102 } 102 103 } 103 104 }