Branch: Tag:

2003-01-30

2003-01-30 13:43:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Bugfix in F_{INC,DEC}{,_NEQ}_LOOP.

Rev: src/interpret_functions.h:1.121

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: interpret_functions.h,v 1.120 2002/11/14 20:19:06 marcus Exp $ + || $Id: interpret_functions.h,v 1.121 2003/01/30 13:43:32 grubba Exp $   */      /*
1265:   #define LOOP(ID, DESC, INC, OP2, OP4) \    OPCODE0_BRANCH(ID, DESC, 0, { \    union anything *i=get_pointer_if_this_type(Pike_sp-2, T_INT); \ -  if(i && !AUTO_BIGNUM_LOOP_TEST(i->integer,INC)) \ +  if(i && !AUTO_BIGNUM_LOOP_TEST(i->integer,INC) && \ +  Pike_sp[-3].type == T_INT) \    { \    i->integer += INC; \    if(i->integer OP2 Pike_sp[-3].u.integer) \