pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:346:    push_text(get_line(fp->pc, fp->context.prog, &lineno));    }else{    push_int(0);    }    APPLY_MASTER("cast_to_object",2);    return;       case T_FUNCTION:    sp[-1].type = T_OBJECT;    break; +  +  default: +  error("Cannot cast to object.\n");    }    break;       case T_PROGRAM:    if(fp->pc)    {    INT32 lineno;    push_text(get_line(fp->pc, fp->context.prog, &lineno));    }else{    push_int(0);
pike.git/src/opcodes.c:386:    sp[-1].subtype=NUMBER_UNDEFINED;    sp[-1].u.integer=0;    }    break;    }    }    }      #ifdef DEBUG    if(run_time_type != sp[-1].type) -  fatal("Internal error: Cast failed (run_time_type = %d, sp[-1].type = %d.)\n"); +  fatal("Internal error: Cast failed (run_time_type = %d, sp[-1].type = %d.)\n",run_time_type,sp[-1].type);   #endif       switch(run_time_type)    {    case T_ARRAY:    {    struct pike_string *itype;    INT32 run_time_itype;       push_string(itype=index_type(sp[-2].u.string,0));