From cc0d6ac19c5d9593a7c7a38dc4b43446b5d7afd4 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Mon, 10 Apr 2000 18:24:38 +0000 Subject: [PATCH] - Two more places needed changing --- Zend/zend_compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 723d9f383a..375ac0bd3c 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1318,7 +1318,7 @@ void do_switch_end(znode *case_list CLS_DC) zend_stack_top(&CG(switch_cond_stack), (void **) &switch_entry_ptr); - if (case_list->u.opline_num != -1) { /* empty switch */ + if (case_list->op_type != IS_UNUSED) { /* non-empty switch */ int next_op_number = get_next_op_number(CG(active_op_array)); CG(active_op_array)->opcodes[case_list->u.opline_num].op1.u.opline_num = next_op_number; @@ -1444,7 +1444,7 @@ void do_default_before_statement(znode *case_list, znode *default_token CLS_DC) switch_entry_ptr->default_case = next_op_number; next_op_number = get_next_op_number(CG(active_op_array)); - if (case_list->u.opline_num==-1) { + if (case_list->op_type==IS_UNUSED) { return; } CG(active_op_array)->opcodes[case_list->u.opline_num].op1.u.opline_num = next_op_number; -- 2.50.1