Branch: Tag:

2008-01-24

2008-01-24 17:48:17 by Martin Stjernholm <mast@lysator.liu.se>

Fixed a couple of places where integer svalues without a defined subtype
were put on the stack. (These svalues can cause zero_type() calls to behave
randomly.)

Rev: src/operators.c:1.169

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: operators.c,v 1.168 2003/11/12 19:01:29 mast Exp $ + || $Id: operators.c,v 1.169 2008/01/24 17:48:17 mast Exp $   */      #include "global.h"   #include <math.h> - RCSID("$Id: operators.c,v 1.168 2003/11/12 19:01:29 mast Exp $"); + RCSID("$Id: operators.c,v 1.169 2008/01/24 17:48:17 mast Exp $");   #include "interpret.h"   #include "svalue.h"   #include "multiset.h"
2908:    default:    free_svalue(sp-1);    sp[-1].type=T_INT; +  sp[-1].subtype = NUMBER_NUMBER;    sp[-1].u.integer=0;    }   }