pike.git / src / array.c

version» Context lines:

pike.git/src/array.c:2045:    ONERROR ouch;    struct svalue *ip=ITEM(a), *dp=ip;    int destructive = 1;       if( size == 0 )    return copy_array(a);       if( a->refs > 1 )    {    /* We only need to do anything if the value exists in the array. */ -  ssize_t off = fast_array_search( a, b, 0 ); +  ptrdiff_t off = fast_array_search( a, b, 0 );    TYPE_FIELD tmp;       if( off == -1 )    /* We still need to return a new array. */    return copy_array(a);       /* In this case we generate a new array and modify that one. */    destructive = 0;    from = (size_t)off;    tmp = a->type_field;