pike.git / src / array.c

version» Context lines:

pike.git/src/array.c:1061:       if (res == -CMPFUN_UNORDERED) {    /* If the objects had no inequality comparison lfuns to call, use    * their pointers to get a well defined internal sort order. Let's    * also group objects cloned from the same program. */    if (a->u.object->prog == b->u.object->prog)    return a->u.object < b->u.object ? -1 : 1;    else    return a->u.object->prog < b->u.object->prog ? -1 : 1;    } +  else if (!res) +  return a_subtype - b_subtype;       return res;   }      int set_svalue_cmpfun(const struct svalue *a, const struct svalue *b)   {    int typediff = a->type - b->type;    if (typediff) {    if (a->type == T_OBJECT || b->type == T_OBJECT) {    int res = lfun_cmp (a, b);