pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:7873:    {    mapping_insert(m, ITEM(a)+i, &svalue_int_one);    if(m_sizeof(m) != size)    {    size=m_sizeof(m);    assign_svalue_no_free(ITEM(b)+ j++, ITEM(a)+i);    }    }       b->type_field = a->type_field; -  push_array(array_shrink(b, j)); +  if (j != a->size) { +  /* There are zeros in the unused fields... */ +  b->type_field |= BIT_INT; +  b = array_shrink(b, j); +  b->type_field = a->type_field;    } -  +  push_array(b); + }      /*! @decl array(mixed) splice(array(mixed) arr1, array(mixed) arr2, @    *! array(mixed) ... more_arrays)    *!    *! Splice two or more arrays.    *!    *! This means that the returned array has the first element in the    *! first given array, then the first argument in next array and so    *! on for all arrays. Then the second elements are added, etc.    *!