From e97d731b1f9954b3e82b53bd759a63dcb37b4c33 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 09:14:28 -0800 Subject: [PATCH] more debug (and some bugfixes) Rev: src/opcodes.c:1.13 --- src/opcodes.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/opcodes.c b/src/opcodes.c index cd67508100..af4de92787 100644 --- a/src/opcodes.c +++ b/src/opcodes.c @@ -243,7 +243,7 @@ void o_cast(struct pike_string *type, INT32 run_time_type) switch(run_time_type) { case T_MIXED: - break; + return; case T_ARRAY: switch(sp[-1].type) @@ -388,13 +388,12 @@ void o_cast(struct pike_string *type, INT32 run_time_type) } break; } - } } #ifdef DEBUG if(run_time_type != sp[-1].type) - fatal("Internal error: Cast failed.\n"); + fatal("Internal error: Cast failed (run_time_type = %d, sp[-1].type = %d.)\n"); #endif switch(run_time_type) -- GitLab