From 569c17b494061b6a9ec2c1792320ede388e9adde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Fri, 27 Feb 1998 11:16:35 -0800 Subject: [PATCH] cast fixed Rev: src/opcodes.c:1.14 --- src/opcodes.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/opcodes.c b/src/opcodes.c index af4de92787..8ffec86c46 100644 --- a/src/opcodes.c +++ b/src/opcodes.c @@ -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) -- GitLab