- Change the place CAST uses for the op_type

This commit is contained in:
Andi Gutmans 2000-05-03 17:56:44 +00:00
parent 599813d73a
commit f2471fd50a
2 changed files with 2 additions and 2 deletions

View File

@ -1892,7 +1892,7 @@ void do_cast(znode *result, znode *expr, int type CLS_DC)
opline->result.u.var = get_temporary_variable(CG(active_op_array));
opline->op1 = *expr;
SET_UNUSED(opline->op2);
opline->op2.u.constant.type = type;
opline->extended_value = type;
*result = opline->result;
}

View File

@ -2001,7 +2001,7 @@ send_by_ref:
if (!EG(free_op1)) {
zendi_zval_copy_ctor(*result);
}
switch (opline->op2.u.constant.type) {
switch (opline->extended_value) {
case IS_NULL:
convert_to_null(result);
break;