Skip to content

Commit 67c6634

Browse files
committed
Zend/Optimizer/block_pass.c: change return type of get_const_switch_target
1 parent 40b5319 commit 67c6634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/Optimizer/block_pass.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static void strip_nops(const zend_op_array *op_array, zend_basic_block *b)
106106
}
107107
}
108108

109-
static int get_const_switch_target(const zend_cfg *cfg, const zend_op_array *op_array, const zend_basic_block *block, zend_op *opline, const zval *val) {
109+
static uint32_t get_const_switch_target(const zend_cfg *cfg, const zend_op_array *op_array, const zend_basic_block *block, zend_op *opline, const zval *val) {
110110
HashTable *jumptable = Z_ARRVAL(ZEND_OP2_LITERAL(opline));
111111
zval *zv;
112112
if ((opline->opcode == ZEND_SWITCH_LONG && Z_TYPE_P(val) != IS_LONG)
@@ -409,7 +409,7 @@ static void zend_optimize_block(zend_basic_block *block, zend_op_array *op_array
409409
break;
410410
}
411411
if (opline->op1_type == IS_CONST) {
412-
int target = get_const_switch_target(cfg, op_array, block, opline, &ZEND_OP1_LITERAL(opline));
412+
uint32_t target = get_const_switch_target(cfg, op_array, block, opline, &ZEND_OP1_LITERAL(opline));
413413
literal_dtor(&ZEND_OP1_LITERAL(opline));
414414
literal_dtor(&ZEND_OP2_LITERAL(opline));
415415
opline->opcode = ZEND_JMP;

0 commit comments

Comments
 (0)