]> granicus.if.org Git - php/commitdiff
- Two more places needed changing
authorAndi Gutmans <andi@php.net>
Mon, 10 Apr 2000 18:24:38 +0000 (18:24 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 10 Apr 2000 18:24:38 +0000 (18:24 +0000)
Zend/zend_compile.c

index 723d9f383adff308b9b6a1a660f760786e699c41..375ac0bd3c7ca895244d08472f78facba53d7e18 100644 (file)
@@ -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;