Skip to content

Commit 57c59ee

Browse files
authored
Merge pull request #71 from luavela/imun/fix-cmp-misuse
Fix GCobj pointer comparison in BC_ISEQV/BC_ISNEV
2 parents e0e89c8 + a62c8b0 commit 57c59ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vm_x86.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2709,7 +2709,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop)
27092709
| // Same types and not a primitive type. Compare GCobj or pvalue.
27102710
| i2gcr GCOBJ:RAa, BASE, RAa // RA := GCobj*
27112711
| i2gcr GCOBJ:RDa, BASE, RDa // RD := GCobj*
2712-
| cmp RA, RD
2712+
| cmp RAa, RDa
27132713
| je <1 // Same GCobjs or pvalues?
27142714
| cmp RB, LJ_TISTABUD
27152715
| ja <2 // Different objects and not table/ud?

0 commit comments

Comments
 (0)