pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.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: encode.c,v 1.261 2008/02/26 21:50:36 grubba Exp $ + || $Id: encode.c,v 1.262 2008/02/29 14:27:09 grubba Exp $   */      #include "global.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "mapping.h"
pike.git/src/encode.c:2897:    case 3:    pop_stack();    decode_value2(data);    break;       default:    Pike_error("Object coding not compatible.\n");    break;    }    -  if(Pike_sp[-1].type != T_OBJECT && data->pickyness) +  if((Pike_sp[-1].type != T_OBJECT) && data->pickyness) { +  if (num != 2) {    decode_error(NULL, Pike_sp - 1, "Failed to decode object. Got: "); -  +  } else if (Pike_sp[-1].type != PIKE_T_INT) { +  decode_error(NULL, Pike_sp - 1, "Failed to decode bignum. Got: "); +  } +  }       break;    }       case TAG_FUNCTION:    decode_value2(data);       switch(num)    {    case 0: