pike.git / src / operators.c

version» Context lines:

pike.git/src/operators.c:498:    {    struct object *o = sp[-1].u.object;    int f = FIND_LFUN(o->prog->inherits[SUBTYPEOF(sp[-1])].prog, LFUN_CAST);    if(f == -1) {    if (run_time_type != T_PROGRAM) {    Pike_error("No cast method in object.\n");    }    f_object_program(1);    return;    } -  push_string(describe_type(type)); +  push_text(get_name_of_type(type->type));    apply_low(o, f, 1);       if (run_time_type == T_PROGRAM) {    if (IS_UNDEFINED(Pike_sp-1)) {    pop_stack();    f_object_program(1);    return;    }    }