diff options
Diffstat (limited to 'src/lj_record.c')
-rw-r--r-- | src/lj_record.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_record.c b/src/lj_record.c index 1669fde1..c150e2e4 100644 --- a/src/lj_record.c +++ b/src/lj_record.c | |||
@@ -819,6 +819,7 @@ static void rec_mm_comp(jit_State *J, RecordIndex *ix, int op) | |||
819 | /* Setup call to cdata comparison metamethod. */ | 819 | /* Setup call to cdata comparison metamethod. */ |
820 | static void rec_mm_comp_cdata(jit_State *J, RecordIndex *ix, int op, MMS mm) | 820 | static void rec_mm_comp_cdata(jit_State *J, RecordIndex *ix, int op, MMS mm) |
821 | { | 821 | { |
822 | lj_snap_add(J); | ||
822 | if (tref_iscdata(ix->val)) { | 823 | if (tref_iscdata(ix->val)) { |
823 | ix->tab = ix->val; | 824 | ix->tab = ix->val; |
824 | copyTV(J->L, &ix->tabv, &ix->valv); | 825 | copyTV(J->L, &ix->tabv, &ix->valv); |