Skip to content

Commit 3e6667d

Browse files
committed
Fix -Wtype-limits warning by using correct type declaration in JIT trace
Namely int as that is the type of 'definition' Closes GH-5299
1 parent 51a305d commit 3e6667d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_trace.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ static int find_call_num_args(zend_jit_trace_rec *p)
774774
static int is_checked_guard(const zend_ssa *tssa, const zend_op **ssa_opcodes, uint32_t var, uint32_t phi_var)
775775
{
776776
if ((tssa->var_info[phi_var].type & MAY_BE_ANY) == MAY_BE_LONG) {
777-
uint32_t idx = tssa->vars[var].definition;
777+
int idx = tssa->vars[var].definition;
778778

779779
if (idx >= 0) {
780780
if (tssa->ops[idx].op1_def == var) {

0 commit comments

Comments
 (0)