pike.git / src / array.c

version» Context lines:

pike.git/src/array.c:410:    sizeof(struct svalue) * (v->size-index));    assert_free_svalue (ITEM(ret) + index);    if (v->refs == 1) {    /* Optimization: Steal the references. */    v->size = 0;    } else if (v->type_field & BIT_REF_TYPES) {    /* Adjust the references. */    int e = v->size;    struct svalue *s = ITEM(ret);    while (e--) { -  if (TYPEOF(*s) <= MAX_REF_TYPE) add_ref(s->u.dummy); +  if (REFCOUNTED_TYPE(TYPEOF(*s))) add_ref(s->u.dummy);    s++;    }    }    free_array(v);    v=ret;    }       array_set_index_no_free (v,index,s);       return v;