Branch: Tag:

1998-02-27

1998-02-27 19:16:35 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

cast fixed

Rev: src/opcodes.c:1.14

353:    case T_FUNCTION:    sp[-1].type = T_OBJECT;    break; +  +  default: +  error("Cannot cast to object.\n");    }    break;   
393: Inside #if defined(DEBUG)
     #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)