pike.git / src / operators.c

version» Context lines:

pike.git/src/operators.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: operators.c,v 1.232 2008/05/21 21:13:04 mast Exp $ + || $Id: operators.c,v 1.233 2008/05/29 10:11:15 grubba Exp $   */      #include "global.h"   #include <math.h>   #include "interpret.h"   #include "svalue.h"   #include "multiset.h"   #include "mapping.h"   #include "array.h"   #include "stralloc.h"
pike.git/src/operators.c:51:    {    case T_ARRAY:    simple_array_index_no_free(to,what->u.array,ind);    break;       case T_MAPPING:    mapping_index_no_free(to,what->u.mapping,ind);    break;       case T_OBJECT: -  object_index_no_free(to, what->u.object, ind); +  object_index_no_free(to, what->u.object, what->subtype, ind);    break;       case T_MULTISET: {    int i=multiset_member(what->u.multiset, ind);    to->type=T_INT;    to->subtype=i ? 0 : NUMBER_UNDEFINED;    to->u.integer=i;    break;    }