Skip to content

Commit 15c6b67

Browse files
committed
Fix jumtable index calculation
1 parent ad66053 commit 15c6b67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11466,7 +11466,7 @@ static int zend_jit_switch(dasm_State **Dst, const zend_op *opline, const zend_o
1146611466
| jz =>b
1146711467
| LOAD_ADDR FCARG1a, jumptable
1146811468
| sub r0, aword [FCARG1a + offsetof(HashTable, arData)]
11469-
| mov FCARG1a, (sizeof(Bucket) / sizeof(uint32_t))
11469+
| mov FCARG1a, (sizeof(Bucket) / sizeof(void*))
1147011470
|.if X64
1147111471
| cqo
1147211472
|.else
@@ -11511,7 +11511,7 @@ static int zend_jit_switch(dasm_State **Dst, const zend_op *opline, const zend_o
1151111511
| jz =>b
1151211512
| LOAD_ADDR FCARG1a, jumptable
1151311513
| sub r0, aword [FCARG1a + offsetof(HashTable, arData)]
11514-
| mov FCARG1a, (sizeof(Bucket) / sizeof(uint32_t))
11514+
| mov FCARG1a, (sizeof(Bucket) / sizeof(void*))
1151511515
|.if X64
1151611516
| cqo
1151711517
|.else

0 commit comments

Comments
 (0)