Branch: Tag:

1999-10-03

1999-10-03 21:44:19 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

operator fixes (I hope)

Rev: src/array.c:1.56
Rev: src/array.h:1.18
Rev: src/testsuite.in:1.199

22:   #include "security.h"   #include "stuff.h"    - RCSID("$Id: array.c,v 1.55 1999/09/24 13:03:01 noring Exp $"); + RCSID("$Id: array.c,v 1.56 1999/10/03 21:44:17 hubbe Exp $");      struct array empty_array=   {
1134:    {    return orderb[~*a] - orderb[~*b];    }else{ -  return -1; +  return 1;    }    }else{    if(*b<0)    { -  return 1; +  return -1;    }else{    return ordera[*a] - ordera[*b];    }
1340:       if(a->type_field & b->type_field)    { -  return merge_array_without_order(a, b, PIKE_ARRAY_OP_AND); +  return merge_array_with_order(a, b, PIKE_ARRAY_OP_AND_LEFT);    }else{    return allocate_array_no_init(0,0);    }