Branch: Tag:

2018-01-19

2018-01-19 10:12:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Debug.find_all_clones(): Fixed off by one issue.

It now seems to work as intended also when include_subclasses is true.

5469:    int e;    /* Check if o->prog has inherited p. */    if (o->prog->storage_needed < p->storage_needed) continue; -  for (e = o->prog->num_inherits - p->num_inherits; e-- > 1;) { +  for (e = o->prog->num_inherits + 1 - p->num_inherits; e-- > 1;) {    if (o->prog->inherits[e].prog == p) {    /* Found. */    ref_push_object(o);