Skip to content

Commit c23a79d

Browse files
committed
refactor: clean zend_get_brk_cont_target arguments and sync var types
1 parent d154c72 commit c23a79d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Zend/zend_opcode.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -709,9 +709,9 @@ static void zend_check_finally_breakout(zend_op_array *op_array, uint32_t op_num
709709
}
710710
}
711711

712-
static uint32_t zend_get_brk_cont_target(const zend_op_array *op_array, const zend_op *opline) {
713-
int nest_levels = opline->op2.num;
714-
int array_offset = opline->op1.num;
712+
static uint32_t zend_get_brk_cont_target(const zend_op *opline) {
713+
uint32_t nest_levels = opline->op2.num;
714+
uint32_t array_offset = opline->op1.num;
715715
zend_brk_cont_element *jmp_to;
716716
do {
717717
jmp_to = &CG(context).brk_cont_array[array_offset];
@@ -1120,7 +1120,7 @@ ZEND_API void pass_two(zend_op_array *op_array)
11201120
case ZEND_BRK:
11211121
case ZEND_CONT:
11221122
{
1123-
uint32_t jmp_target = zend_get_brk_cont_target(op_array, opline);
1123+
uint32_t jmp_target = zend_get_brk_cont_target(opline);
11241124

11251125
if (op_array->fn_flags & ZEND_ACC_HAS_FINALLY_BLOCK) {
11261126
zend_check_finally_breakout(op_array, opline - op_array->opcodes, jmp_target);

0 commit comments

Comments
 (0)