Skip to content
Snippets Groups Projects
Commit 569c17b4 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

cast fixed

Rev: src/opcodes.c:1.14
parent f1973556
No related branches found
No related tags found
No related merge requests found
......@@ -353,6 +353,9 @@ void o_cast(struct pike_string *type, INT32 run_time_type)
case T_FUNCTION:
sp[-1].type = T_OBJECT;
break;
default:
error("Cannot cast to object.\n");
}
break;
......@@ -393,7 +396,7 @@ void o_cast(struct pike_string *type, INT32 run_time_type)
#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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment