diff options
author | Mike Pall <mike> | 2014-01-19 13:09:20 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2014-01-19 13:09:20 +0100 |
commit | 45c067ddddaae1bedc3e07b6f5af65aea3beceac (patch) | |
tree | 8bf583a34dfbe598b9891da00aa59a78d46e0d8f /src | |
parent | ef59e5482055ed4477144518fc79a993288e855b (diff) | |
download | luajit-45c067ddddaae1bedc3e07b6f5af65aea3beceac.tar.gz luajit-45c067ddddaae1bedc3e07b6f5af65aea3beceac.tar.bz2 luajit-45c067ddddaae1bedc3e07b6f5af65aea3beceac.zip |
FFI: Fix cts->L for cdata unsinking in snapshot restore.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_snap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_snap.c b/src/lj_snap.c index 4d211898..1c978c26 100644 --- a/src/lj_snap.c +++ b/src/lj_snap.c | |||
@@ -708,7 +708,7 @@ static void snap_unsink(jit_State *J, GCtrace *T, ExitState *ex, | |||
708 | ir->o == IR_CNEW || ir->o == IR_CNEWI); | 708 | ir->o == IR_CNEW || ir->o == IR_CNEWI); |
709 | #if LJ_HASFFI | 709 | #if LJ_HASFFI |
710 | if (ir->o == IR_CNEW || ir->o == IR_CNEWI) { | 710 | if (ir->o == IR_CNEW || ir->o == IR_CNEWI) { |
711 | CTState *cts = ctype_ctsG(J2G(J)); | 711 | CTState *cts = ctype_cts(J->L); |
712 | CTypeID id = (CTypeID)T->ir[ir->op1].i; | 712 | CTypeID id = (CTypeID)T->ir[ir->op1].i; |
713 | CTSize sz = lj_ctype_size(cts, id); | 713 | CTSize sz = lj_ctype_size(cts, id); |
714 | GCcdata *cd = lj_cdata_new(cts, id, sz); | 714 | GCcdata *cd = lj_cdata_new(cts, id, sz); |