Branch: Tag:

2004-09-22

2004-09-22 18:00:48 by Martin Nilsson <mani@lysator.liu.se>

array_fix_type_field should return TYPE_FIELD

Rev: src/array.c:1.162

2:   || 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: array.c,v 1.161 2004/09/22 12:13:22 mast Exp $ + || $Id: array.c,v 1.162 2004/09/22 18:00:48 nilsson Exp $   */      #include "global.h"
27:   #include "multiset.h"   #include "mapping.h"    - RCSID("$Id: array.c,v 1.161 2004/09/22 12:13:22 mast Exp $"); + RCSID("$Id: array.c,v 1.162 2004/09/22 18:00:48 nilsson Exp $");      PMOD_EXPORT struct array empty_array=   {
1201:    int e;    TYPE_FIELD t;    -  t=0; -  +     if(v->flags & ARRAY_LVALUE) -  { -  v->type_field=BIT_MIXED|BIT_UNFINISHED; -  return; -  } +  return v->type_field=BIT_MIXED|BIT_UNFINISHED;    -  +  t=0; +     for(e=0; e<v->size; e++) {    check_svalue (ITEM(v) + e);    t |= 1 << ITEM(v)[e].type;