pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:5462:    if (o->prog == p) {    ref_push_object(o);    DO_AGGREGATE_ARRAY(120);    continue;    }    if (include_subclasses && o->prog &&    (o->prog->num_inherits > p->num_inherits)) {    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);    DO_AGGREGATE_ARRAY(120);    break;    }    }    }    }