pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:929:       code_entry(TAG_FUNCTION, 0, data);    encode_value2(Pike_sp-1, data, 0);    pop_stack();    break;          case T_PROGRAM:    {    int d; -  if (val->u.program->id < PROG_DYNAMIC_ID_START) { +  if ((val->u.program->id < PROG_DYNAMIC_ID_START) && +  (val->u.program->id >= 0)) {    code_entry(TAG_PROGRAM, 3, data);    push_int(val->u.program->id);    encode_value2(Pike_sp-1, data, 0);    pop_stack();    break;    }    if (data->canonic)    Pike_error("Canonical encoding of programs not supported.\n");    if (!(val->u.program->flags & PROGRAM_FIXED))    Pike_error("Encoding of unfixated programs not supported.\n");